TortoiseSVN 1.13.1 Unable to decode properties with Chinese characters correctly

29 views
Skip to first unread message

我ink

unread,
Jan 30, 2020, 8:21:23 AM1/30/20
to TortoiseSVN
TortoiseSVN
TortoiseSVN 1.13.1, Build 28686 - 64 Bit , 2019/10/31 18:49:38
ipv6 enabled
Subversion 1.13.0, -release
apr 1.7.0
apr-util 1.6.1
serf 1.3.9
OpenSSL 1.1.1d  10 Sep 2019
zlib 1.2.11
SQLite 3.29.0

SVN Server
VisualSVNServer 3.9.4 - 64 Bit
Subversin 1.10.6

Server OS
WindowsServer 2008 R2 or Windows10

Client OS
Windows10 1903 or Windows7

When I add "other" propert and use Chinese character as property value, using 
svn pl xxx  https://xxx/svn/repo
 command  can not decode and display correctly, and if you using 
svn ps xxx xxx c:\xxx\xx 
to set property value, Similarly, it can't be displayed normally.   no problem using other types of properties. As shown in the following pictures:
111.jpg

222.jpg

333.jpg

555.jpg

Stefan

unread,
Jan 30, 2020, 2:05:05 PM1/30/20
to TortoiseSVN
if you set the property from the command line, then your text is converted by the console.
Also, the command line client treats all properties that don't start with svn: as binary, not text.
TSVN however tries to determine whether the custom property value is text or not and if it detects that it might be text, stores them in utf8 encoding.

我ink

unread,
Jan 30, 2020, 8:29:25 PM1/30/20
to torto...@googlegroups.com
在 2020年1月31日星期五 UTC+8上午3:05:05,Stefan写道:
if you set the property from the command line, then your text is converted by the console.
Also, the command line client treats all properties that don't start with svn: as binary, not text.
TSVN however tries to determine whether the custom property value is text or not and if it detects that it might be text, stores them in utf8 encoding.

Thank you very much for your reply. Great! I added "SVN:" to the front of the attribute, which can be parsed correctly! 

I tried following command
svn pl svn:xxxx https://xxxx/svn/xxx -v
then it can be dispalyed correctly by console 
svn ps svn:xxxx xxxxvalue c:\xxxx --force
then it can be displayed correctly by TSVN 

My problem has been solved!But in this way, I feel there will be conflicts with the original properties of SVN. Is there a better way to display the custom properties as text?

I just forgot somthing,When the command line uses English characters, writing the “Other” property value SVN can be recognized automatically, but it can't be recognized when using Chinese characters. The problem lies in the SVN program?

Stefan

unread,
Feb 2, 2020, 9:46:02 AM2/2/20
to TortoiseSVN
the problem you're seeing is both a problem of the console encoding and the svn command line client, not TSVN.
Reply all
Reply to author
Forward
0 new messages