Ecere SDK/eC Forums http://ec-lang.org/community/ Print view |
|
SearchString.matchWord to UTF16(Chinese characters) http://ec-lang.org/community/viewtopic.php?f=1&t=374 |
Page 1 of 1 |
Author: | samsam598 [ Fri Sep 20, 2013 6:23 am ] |
Post subject: | SearchString.matchWord to UTF16(Chinese characters) |
Times again I did a small practice program on SearchString,it works fine.But till recent I found it does not work as expected to Chinese characters when the matchWord's set or not. Given below program,matchWord works fine when the source string and the string been found are English characters.But when I tested with Chinese characters,say ,searching "文" in "中文的文字是象形字",`matchWord`(匹配整个单词) makes big difference but not expected result. Don't know whether this behavior's designed as expected. Code: Select all
|
Author: | jerome [ Fri Sep 20, 2013 11:34 am ] |
Post subject: | Re: SearchString.matchWord to UTF16(Chinese characters) |
Hi Sam, SearchString is expecting ASCII characters. I'm guessing you mean UTF-8 here, as that is the standard encoding in eC source files and Ecere APIs. SearchString should probably handle UTF8, so could you please file a Mantis issue for it? I think all that needs to be done is to replace the definition of the IS_ALUNDER macro in String.ec for: Code: Select all
Jerome |
Author: | samsam598 [ Sat Sep 21, 2013 12:09 am ] |
Post subject: | Re: SearchString.matchWord to UTF16(Chinese characters) |
Sorry I can't reproduce the issue with current SDK.Will check again to see whether the issue disappears. Thanks for the help. |
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |