Partly fixed problem with non-ascii encoding in the TFS repository path
Partly fixed problem with non-ascii encoding in the TFS repository path

The problem is that this value is written to .git\config which is done via git config command. And it uses system default encoding to write values. So the support was extended to system default encoding which is somewhat fragile (git-tfs will be broken if system default encoding changed).

More general approach is to encode this value in base-64 before saving to git config. It will make config file unreadable but will be robust. Further, all legitimate TFS paths start with $ char which can't appear in base-64 encoded string, so we can use it. If we have pure ASCII value - write it as it is, otherwise, encode it into base-64. When reading value check first byte. If it is ASCII code of '$' - read value normally, otherwise decode it before use. I'll leave it for TODO list for now.

NathanLBCooper/git-tfs,WolfVR/git-tfs,timotei/git-tfs,kgybels/git-tfs,WolfVR/git-tfs,adbre/git-tfs,pmiossec/git-tfs,allansson/git-tfs,codemerlin/git-tfs,bleissem/git-tfs,spraints/git-tfs,irontoby/git-tfs,timotei/git-tfs,bleissem/git-tfs,hazzik/git-tfs,jeremy-sylvis-tmg/git-tfs,NathanLBCooper/git-tfs,guyboltonking/git-tfs,bleissem/git-tfs,allansson/git-tfs,vzabavnov/git-tfs,TheoAndersen/git-tfs,hazzik/git-tfs,modulexcite/git-tfs,hazzik/git-tfs,modulexcite/git-tfs,adbre/git-tfs,guyboltonking/git-tfs,steveandpeggyb/Public,steveandpeggyb/Public,hazzik/git-tfs,steveandpeggyb/Public,allansson/git-tfs,spraints/git-tfs,TheoAndersen/git-tfs,TheoAndersen/git-tfs,jeremy-sylvis-tmg/git-tfs,git-tfs/git-tfs,kgybels/git-tfs,WolfVR/git-tfs,codemerlin/git-tfs,timotei/git-tfs,jeremy-sylvis-tmg/git-tfs,modulexcite/git-tfs,andyrooger/git-tfs,irontoby/git-tfs,PKRoma/git-tfs,NathanLBCooper/git-tfs,codemerlin/git-tfs,adbre/git-tfs,allansson/git-tfs,TheoAndersen/git-tfs,irontoby/git-tfs,kgybels/git-tfs,guyboltonking/git-tfs,spraints/git-tfs