User forums > Help

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

<< < (2/3) > >>

thomas:
No idea about Notepad++, sorry.

All I can say is that our version of wxScintilla does not cope well with non-Western characters. It may be an actual bug in wxScintilla, but it may as well be that we're not using it properly. Who knows... :lol:

To date, the only thing to do is to avoid having offending characters in the source file...

Michael:

--- Quote from: thomas on February 03, 2006, 05:37:10 pm ---No idea about Notepad++, sorry.

--- End quote ---

I was interested in this tool and after a google serach I found it:


--- Quote ---Notepad++ is a free source code editor which supports several programming languages running under the MS Windows environment.

This project, based on Scintilla edit component (a very powerful editor component) are written in C++ with pure win32 api and STL (that ensures the higher execution speed and smaller size of the program), is under the GPL Licence.
...

--- End quote ---

Michael

takeshimiya:

--- Quote from: thomas on February 03, 2006, 05:37:10 pm ---No idea about Notepad++, sorry.

All I can say is that our version of wxScintilla does not cope well with non-Western characters. It may be an actual bug in wxScintilla, but it may as well be that we're not using it properly. Who knows... :lol:

To date, the only thing to do is to avoid having offending characters in the source file...

--- End quote ---

If someone would ever cared to review the patches from 280Z28, this problem has been fixed long time ago. :(

heromyth:

--- Quote from: SamT on February 03, 2006, 03:05:37 pm ---After several files comparison, I find out there exist some Chinese characters (code in UTF-8) will be the root cause.
--- End quote ---

Maybe because of this, I can't use internationlized CB with unicode under Windows XP and Windows 2000 and FreeBSD. Sometimes it's successful under Windows 2000 server. I'm looking for the way.

heromyth:

--- Quote ---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).

--- End quote ---

This way can't solve all the problem for example non-English characters exists in other place of sources.  After I change the sources' page code to ansi not utf-8 or unicode, all work well.   However I am wondering why it happens that the same sources which page code is utf-8 or unicode,  it shows correctly in some editors like editplus but incorrectly in wxScintilla + wxwidgets.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version