XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

Chinese characters are messy code. #42

Closed ageback closed 11 years ago

ageback commented 11 years ago

First thanks for the good mods. I downloaded and installed the latest ver.4.2.25 r855. In this version Chinese characters are messed up.

e.g. Type or paste "我是中国人" into Notepad2-mod v.4.2.25 r855 then it shows me some unreadable codes.Please see screenshot following.

notepad2mod

Which should be like this in other text editor: texteditor

ageback commented 11 years ago

And I forgot to say there was no such problem in older builds.

XhmikosR commented 11 years ago

I'm not sure what's wrong, but it seems to work in Scite 3.3.1. But no one has touched any relevant code from what I can tell.

Does the original Notepad2 have this issue?

XhmikosR commented 11 years ago

Also, if you copy the above text and open ctrl+f the entered text is the correct one... Or, if you enter an empty space and then paste the text it will show right.

JayXon commented 11 years ago

I can confirm this only happens in r855. None previous version have this issue. If the first letter of a line is english, chinese characters are shown correctly.

eg. If I type

a测试
测试

It will be shown like this 2013-05-19 23 14 56

And if I change the encoding to UTF-8 then only the first chinese letter are wrong. 2013-05-19 23 19 55

XhmikosR commented 11 years ago

It seems to me like a Scintilla bug. We'll need to wait for Scintilla 3.3.2 to be out and try. If it's a Scintilla bug someone will have to report it there.

JayXon commented 11 years ago

But SciTE 3.3.1 doesn't have this issue.

XhmikosR commented 11 years ago

And what tells you it can't be something introduced in 3.3.2? In case you haven't noticed that is the version Notepad2-mod is using.

JayXon commented 11 years ago

Sorry I haven't noticed before. But why are you using an unreleased version? Is that stable?

XhmikosR commented 11 years ago

Like I said, it was indeed a Scintilla bug. http://sourceforge.net/p/scintilla/code/ci/d887fce163757c50ec95ed204d50b02675db830c/

I will release a new build later or so.

Questions like that are not to be answered by me, sorry.