{"thread":{"id":"51036","subject":"git has issues with international characters in branch names","startedAt":"2019-05-05T10:27:58Z","lastAt":"2019-05-06T04:32:54Z","messageCount":3,"participants":["Ax Da","brian m. carlson","Jacob Keller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"374909","messageId":"trinity-aa2c53fa-25e5-49df-83f9-68f310683943-1557052051546@3c-app-gmx-bs61","threadId":"51036","inReplyTo":null,"subject":"git has issues with international characters in branch names","fromName":"Ax Da","fromEmail":"discussion@gmx.net","sentAt":"2019-05-05T10:27:31Z","receivedAt":"2019-05-05T10:27:58Z","isPatch":false,"sender":{"key":"discussion@gmx.net","avatar":null},"body":"The documentation doesn't seem to be clear about which characters are allowed as branch names.\n\nWe have been using umlauts and apostrophes in our branch names, and both are having issues:\n\n- apostrophe:\n  git removes the apostrophes from the branch name when creating/pushing a branch.\n  In our TFS server repository we're having the same branch name twice: Once with apostrophes,\n  and once without. And I don't seem to be able to delete the one without apostrophes.\n\n- umlauts:\n  The umlauts are not correctly interpreted when SMB is used. \"gemäss\" becomes \"gem<C3><A4>ss\".\n  (See images attached.)"},{"id":"374927","messageId":"20190505181444.GA7458@genre.crustytoothpaste.net","threadId":"51036","inReplyTo":"trinity-aa2c53fa-25e5-49df-83f9-68f310683943-1557052051546@3c-app-gmx-bs61","subject":"Re: git has issues with international characters in branch names","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2019-05-05T18:14:45Z","receivedAt":"2019-05-05T18:14:57Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On Sun, May 05, 2019 at 12:27:31PM +0200, Ax Da wrote:\n> The documentation doesn't seem to be clear about which characters are allowed as branch names.\n> \n> We have been using umlauts and apostrophes in our branch names, and both are having issues:\n> \n> - apostrophe:\n>   git removes the apostrophes from the branch name when creating/pushing a branch.\n>   In our TFS server repository we're having the same branch name twice: Once with apostrophes,\n>   and once without. And I don't seem to be able to delete the one without apostrophes.\n> \n> - umlauts:\n>   The umlauts are not correctly interpreted when SMB is used. \"gemäss\" becomes \"gem<C3><A4>ss\".\n>   (See images attached.)\n\nI don't think Git itself has a problem with Unicode. I literally just\nthe other day created a branch with a Unicode apostrophe and pushed it\nto GitHub successfully using macOS. It is possible that TFS doesn't like\nthem; that depends on the hosting solution you use. If you're seeing\nproblems with TFS, I'd reach out to Microsoft for assistance.\n\nIt looks also like the Git CMD interface isn't rendering them properly.\nI would try using Git Bash instead, and if that doesn't work, please\nreport that to Git for Windows. The folks there will have a better idea\nabout the portability issue that's occurring; I expect there's a wart\nthere somewhere between UTF-8 and UTF-16. It may also be that SMB is not\na good choice for sharing repositories if you require\ninternationalization, or you may need to change the character set your\nSMB server uses.\n\nYou may also, depending on which version of Windows you are using, have\nbetter luck at the command line with Windows Subsystem for Linux.\n-- \nbrian m. carlson: Houston, Texas, US\nOpenPGP: https://keybase.io/bk2204\n"},{"id":"374935","messageId":"CA+P7+xraNUBN_UjN+fL0vfTEzpHmNYUj5f=YLUF9etxo79zEPw@mail.gmail.com","threadId":"51036","inReplyTo":"20190505181444.GA7458@genre.crustytoothpaste.net","subject":"Re: git has issues with international characters in branch names","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2019-05-06T04:32:41Z","receivedAt":"2019-05-06T04:32:54Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"On Sun, May 5, 2019 at 11:16 AM brian m. carlson\n<sandals@crustytoothpaste.net> wrote:\n>\n> On Sun, May 05, 2019 at 12:27:31PM +0200, Ax Da wrote:\n> > The documentation doesn't seem to be clear about which characters are allowed as branch names.\n> >\n> > We have been using umlauts and apostrophes in our branch names, and both are having issues:\n> >\n> > - apostrophe:\n> >   git removes the apostrophes from the branch name when creating/pushing a branch.\n> >   In our TFS server repository we're having the same branch name twice: Once with apostrophes,\n> >   and once without. And I don't seem to be able to delete the one without apostrophes.\n> >\n> > - umlauts:\n> >   The umlauts are not correctly interpreted when SMB is used. \"gemäss\" becomes \"gem<C3><A4>ss\".\n> >   (See images attached.)\n>\n> I don't think Git itself has a problem with Unicode. I literally just\n> the other day created a branch with a Unicode apostrophe and pushed it\n> to GitHub successfully using macOS. It is possible that TFS doesn't like\n> them; that depends on the hosting solution you use. If you're seeing\n> problems with TFS, I'd reach out to Microsoft for assistance.\n>\n> It looks also like the Git CMD interface isn't rendering them properly.\n> I would try using Git Bash instead, and if that doesn't work, please\n> report that to Git for Windows. The folks there will have a better idea\n> about the portability issue that's occurring; I expect there's a wart\n> there somewhere between UTF-8 and UTF-16. It may also be that SMB is not\n> a good choice for sharing repositories if you require\n> internationalization, or you may need to change the character set your\n> SMB server uses.\n\nIn my experience, the regular command prompt will have significant\ntroubles displaying UTF-8 characters.\n\nI had better luck in Git Bash, but I don't recall if I had to do\nsomething for it.\n\nThanks,\nJake\n\n>\n> You may also, depending on which version of Windows you are using, have\n> better luck at the command line with Windows Subsystem for Linux.\n> --\n> brian m. carlson: Houston, Texas, US\n> OpenPGP: https://keybase.io/bk2204\n"}]}