Author Topic: subversion browser display unrecognizable characters  (Read 3028 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: 2898
  • Hero Points: 153
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.