Re: [Freevo-devel] Re: No DBCS support???

2004-06-17 Thread Zhenxin Li
Why should the localized strings be encoded into DBCS form?

Regards,
Zhenxin Li 

-邮件原件-
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表 Dirk Meyer
发送时间: Thursday, June 17, 2004 8:01 PM
收件人: [EMAIL PROTECTED]
主题: [Freevo-devel] Re: No DBCS support???

"Zhenxin Li" wrote:
> Hello,
>  
> It seems that strings localized to other locales are processed as non 
> unicode strings in the freevo python code. This causes the DBCS 
> strings failed to display.
>  
> In xml_skin.py, all strings read from xml files are transformed to non 
> unicode by string.encode. I think it should be string.decode.

The conversion is done in our function String(). Try to change the encode to
decode in src/util/__init__.py


Dischi

-- 
Your mouse has moved.   Windows NT must be restarted for the
change to take effect.   Reboot now?  [ OK ]


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from
the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June
28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE!
http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel





---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] No DBCS support???

2004-06-17 Thread Zhenxin Li



I made a mistake. The strings read from xml files are 
unicode strings.
 
But when the drawstringframed function in osd.py draws 
the localized strings. They are DBCS string instead of unicode strings. When and 
where are they converted to non unicode?
 
Regards,
Zhenxin Li


发件人: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 代表 Zhenxin 
Li发送时间: Thursday, June 17, 2004 5:45 PM收件人: 
[EMAIL PROTECTED]主题: [Freevo-devel] No DBCS 
support???

Hello,
 
It seems that strings localized 
to other locales are processed as non unicode strings in the freevo python code. 
This causes the DBCS strings failed to display.
 
In xml_skin.py, all strings 
read from xml files are transformed to non unicode by string.encode. I think it 
should be string.decode.
 
Best 
regards,
Zhenxin 
Li


[Freevo-devel] No DBCS support???

2004-06-17 Thread Zhenxin Li



Hello,
 
It seems that strings localized 
to other locales are processed as non unicode strings in the freevo python code. 
This causes the DBCS strings failed to display.
 
In xml_skin.py, all strings 
read from xml files are transformed to non unicode by string.encode. I think it 
should be string.decode.
 
Best 
regards,
Zhenxin 
Li