Author Topic: subversion browser display unrecognizable characters  (Read 1517 times)

bfdream

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
subversion browser display unrecognizable characters
« on: May 12, 2009, 03:17:16 pm »
I am Chinese, and when I use subversion browser to checkout the svn repository, unrecognizable characters are displayed.
I debug the "subversionbrowser.e" macro file, and find the reason. The directory string is encoded as DBCS string, where the codepage is cp936 (Simplified Chinese). But slickedit takes it as a UTF8 string.
I use a little trick to resolve that: use _UTF8ToMultiByte() to translate the string, and use _MultiByteToUTF8() to translate it back.

But the codepage parameter is hard coded in the "subversionbrowser.e" as 936, so I hope for a general solution.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1956
  • Hero Points: 81
Re: subversion browser display unrecognizable characters
« Reply #1 on: May 12, 2009, 07:00:51 pm »
Can you PM me your tweaked version of subversionbrowser.e so I can see the changes that you made?

bfdream

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: subversion browser display unrecognizable characters
« Reply #2 on: May 13, 2009, 12:59:52 am »
The attachment is my modified version of subversionbrowser.e, and the modification was in the function "static int SVNBrowseExpandItem(_str TreeInfo)".

Thanks very much.