On Mar 10, 2005, at 9:31 AM, Schollnick, Benjamin wrote:
> Folks,
>
> First, can Pythoncard operate with the unicode version of WxPython
> Installed?
> I suspect so, but I do not see requirements for WxPython listed on the
> Pythoncard
> pages...
>
> The reason I ask is that I am attempting to display a unicode (UTF-8)
> page in
> a HTMLWindow, and while it displays, a error dialog comes up and says
> it
> can
> not display in UTF-8....(The UTF-8 only characters are broken out in
> the
> encoded
> manner)
>
> Now before I upgrade WxPython, I need to ensure that I am not going to
> break Pythoncard...
>
> Is there a problem with the Unicode WxPython & Pythoncard?
>
> And has anyone successfully shown a Unicode document in a Pythoncard
> HTMLWindow?
>
> - Ben
>
PythonCard works with both Unicode and non-Unicode builds of wxPython
on all platforms.
I think we may still have an issue with the resourceEditor saves of the
resource files stripping Unicode out of menu items or something like
that, but otherwise it should work fine. We probably need to create
some resource files that use Unicode strings in a variety of component
attributes and then test that the resourceEditor behaves correctly both
with Unicode and non-Unicode builds of wxPython as far as string
conversion goes.
The other issue is what happens when a resource file containing Unicode
strings is loaded with a non-Unicode build of wxPython, will it convert
down to ascii, just throw an exception? Again, need some examples to
test. The code that might need to adjusted to auto-convert or display a
warning dialog is pretty small.
ka
|