User forums > Help

Can't get correct UTF-8 display in text panel in my XP system

(1/3) > >>

SamT:
Hi,

Today, when I use C::B to open C::B source code, some of the files can be opened but can't display in text panel. It's really amazing to have this problem.
After several files comparison, I find out there exist some Chinese characters (code in UTF-8) will be the root cause. Please refere the C::B source file of ./src/src/app.cpp (line 23), ./src/src/dlgabout.cpp (line 23). After I delete the character, the file can be display correctly.

Does anyone encounter the same problem?
I use Version 1.0 revision 1935 on XP(multi language with Chinese Character support)

Take the picture as the example.


[attachment deleted by admin]

thomas:
That is a known issue, it also happens with Umlauts (or any diacritics, for that matter). And unluckily, we probably won't be able to fix it any time soon, either.

I'll try to find out how we can prevent Subversion to write out non-compliant characters in the first place, there sure is a way... (in fact, I know at least three ways to do that, but they all require the individual user to modify something, that's not the desired solution).

thomas:
The bad news:
I had hoped that it was possible to either set a property in the repository or to change a server configuration switch so that dates are always generated in English for everybody.
This is not possible, as keyword substitution is done locally by your svn client, according to your system language settings, and it cannot be controlled repository-wide. :(
So much about the benefits of localised applications...

The good news:
The two files which cause a problem to you use the $Date$ keyword which substitutes the local date and time in long format (something like "Friday, January 6, 2006"), resulting in the very problem you described. The $Id$ field, however, already contains a date (in ISO format), which means that we can obsolete the $Date$ keyword. I will globally replace the $Id$ keyword during the next half hour.

Hopefully, this will solve the problem for you (it it does not, you have to change your language settings for Subversion).

thomas:
Try again now. 1940 should not show that problem any more (although the problem as such is of course not solved).

SamT:

--- Quote from: thomas on February 03, 2006, 05:04:01 pm ---Try again now. 1940 should not show that problem any more (although the problem as such is of course not solved).

--- End quote ---

 :mrgreen: This is some thing like a workaround solution for me. Thanks! However, I am curious about the reason to correctly display in Notepad ++. Does it use the same engine of Scintilla? I am not familar about the program design because I am just new in coding. So... Please forgive for my stupid question.

Navigation

[0] Message Index

[#] Next page

Go to full version