Discussion:
svn client for Windows and non-latin symbols
Eugene M. Zheganin
2018-05-04 10:44:04 UTC
Permalink
Hello,


I'm trying to use the native windows client - svn.exe and it really
looks like it corrupts or doesn't reencodes properly UTF-8 symbols
froma repository (in svn history logs) to the native windows locale,
because in dates and content it shows question signs.

Is there any workaround to this ?


Thanks.

Eugene.
Mark Phippard
2018-05-04 11:01:50 UTC
Permalink
If you see a ? It means the font does not have a glyph for the character. Use a Unicode font.

Sent from my iPhone
Post by Eugene M. Zheganin
Hello,
I'm trying to use the native windows client - svn.exe and it really looks like it corrupts or doesn't reencodes properly UTF-8 symbols froma repository (in svn history logs) to the native windows locale, because in dates and content it shows question signs.
Is there any workaround to this ?
Thanks.
Eugene.
Eugene M. Zheganin
2018-05-07 10:59:55 UTC
Permalink
Hello,
Post by Mark Phippard
If you see a ? It means the font does not have a glyph for the character. Use a Unicode font.
That would only help if svn would output some kind of unicode. It doesn't.
You can't even tell it to output utf-8, there's no such option.
People talk about setting the LANG environment variable or some such,
but I've never managed to get that to do anything.
Eugene, you can use the --xml option. That will get you utf-8 output.
Yup, thanks a lot. I was able to get the right output after changing
console codepage with chcp. Windows console subsystem... is weird. :)

Eugene.
Branko Čibej
2018-05-07 10:42:29 UTC
Permalink
Post by Mark Phippard
If you see a ? It means the font does not have a glyph for the character. Use a Unicode font.
That would only help if svn would output some kind of unicode.
Nonsense.
It doesn't.
Subversion will output whatever you have set as your system encoding.
But if your console window isn't using a font that can represent all the
characters in that encoding, then  they won't be printed correctly. This
has nothing to do with Subversion but with how your console is set up.

By the way, the default console font (Consolas) is quite limited and
don't even contain the whole range of accented latin characters. Try
using Lucida Console instead.
You can't even tell it to output utf-8, there's no such option.
There is, in fact, but not in Subversion; you have to fiddle with
Windows' regional settings.
People talk about setting the LANG environment variable or some such,
but I've never managed to get that to do anything.
LANG and LC_* environment variables are pertinent to Unix, not Windows.

-- Brane

Loading...