from ansi to unicode, problem with stc

Robin Dunn:

  Have you considered to make STC in ansi version support non-ASCII characters, such as CJK?

    In a ansi versioin wxpython, most widgets works well with non-ASCII characters except STC. I prefer ansi wxpython since it's unnecessary to encode/decode string. My only reason for which I use unicode version is that ansi version STC cannot work with CJK characters very well. If ansi version STC support CJK, I'll go back to use ansi wxpython.

    Bruce Who
    HuXuZhao@hotmail\.com
      2005\-04\-19

Bruce Who wrote:

Robin Dunn:

Have you considered to make STC in ansi version support non-ASCII
characters, such as CJK?

In a ansi versioin wxpython, most widgets works well with non-ASCII
characters except STC. I prefer ansi wxpython since it's unnecessary
to encode/decode string. My only reason for which I use unicode
version is that ansi version STC cannot work with CJK characters very
well. If ansi version STC support CJK, I'll go back to use ansi
wxpython.

Have you tried using StyleSetCharacterSet? The current implementation
accepts wx.stc.STC_CHARSET_* values and then maps them to
wx.FONTENCODING_* values. I should probably change it to just use the
wx.FONTENCODING_* values all the way through, or perhaps just add a new
StyleSetFontEncoding method...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!