Hi,

I built a form using ClassDesigner. I set the text of a label using
DynamicCaption property of the label. In the string I generate for the
label, there are non ASCII chars. When I run my application, strange
characters appear before the non ASCII chars. If I open back the Python
code in ClassDesigner, those strange chars also appear in the editor.

More specifically, my function looks like:

> name = u"{0} «{1}»".format(name, nickname)

but shows like that when reopened in the code editor of ClassDesigner:

> name = u"{0} «{1}»".format(name, nickname)


If I save the form in ClassDesigner, those strange chars are saved in the
code.py file . If I don't, the file is ok (but stange chars appear when
running the application).

My guess is that that there is probably a function that isn't UTF-8 aware
when reading files produced by ClassDesigner. Are you aware of that?


*Charles Brunet, B. Ing.*
Webmestre.
Étudiant au doctorat, génie électrique, Université Laval.


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/CAJPgzx=wj8dechfptyvh2c-m7pvgd+upwqcnv9erxks9fwp...@mail.gmail.com

Reply via email to