[Bf-committers] how to make python script contain and display utf-8 characters in blender?

明覺 shi.minjue at gmail.com
Fri Apr 17 16:38:02 CEST 2009


On Fri, Apr 17, 2009 at 10:09 PM, Roger Wickes <rogerwickes at yahoo.com> wrote:
> when you say that "it doesn't take effect", possibly you have not enabled "Tooltips", "Buttons", and "Toobox"?
I have enabled that three buttons, but the console output says:

 "could not change language to en_US nor en_US.UTF-8"

maybe that's the problem, why could not change language to en_US nor
en_US.UTF-8?

thanks

>  ----------------
> Sent by Roger Wickes for intended recipient. If you are not the intended recipient, please delete this message and contact Mr. Wickes immediately.
>
>
>
>
> ________________________________
> From: joe <joeedh at gmail.com>
> To: bf-blender developers <bf-committers at blender.org>
> Sent: Friday, April 17, 2009 9:58:35 AM
> Subject: Re: [Bf-committers] how to make python script contain and display utf-8 characters in blender?
>
> That's odd.  The user interface should be able to display chinese
> characters, so long as they're encoded in UTF-8.  You do however have
> to set the font in the user prefs to point to a chinese font (the
> "International Fonts" section of the user prefs).
>
> Joe
>
> 2009/4/15 明覺 <shi.minjue at gmail.com>:
>> 2009/4/14 joe <joeedh at gmail.com>:
>>> I don't believe blender's text editor can display chinese fonts
>>> correctly.  Doing so would require a more advanced font rendering
>>> library then we're using, and major changes in the code.  I'd suggest
>>> using an external text editor to code external modules, that you can
>>> call with a simple script in blender (e.g. make a module called Foo,
>>> and do import Foo in the blender text editor to import it).  You may
>>> want to read up on the PYTHONPATH variable for more information on how
>>> to properly do this though.
>> Thanks for the advice, I can use external text editor to edit python
>> script, the problem is after I press alt+p to exe the script, I hope
>> the chinese characters can display at there please, such as a
>> description of a input field, but i found that the user interface
>> cannot display chinese characters, maybe it's the same reason as in
>> text editor?  I believe blender should provide this support in the
>> future.
>>
>>> Joe
>>>
>>> 2009/4/13 明覺 <shi.minjue at gmail.com>:
>>>> On Tue, Apr 14, 2009 at 10:48 AM, Roger Wickes <rogerwickes at yahoo.com> wrote:
>>>>> Blender can support chinese fonts and the simplified chinese labels. see the
>>>>> User Preferences, Language tab. Enable International, and select your font
>>>>> and language.
>>>> I tried to select a chinese font in the language & font section, but
>>>> after I select a chinese fonts, it doesn't take effect, and a error
>>>> message "could not change language to en_US nor en_US.UTF-8" output to
>>>> the console, how could i solve it? thanks
>>>>
>>>>
>>>>> ----------------
>>>>> Sent by Roger Wickes for intended recipient. If you are not the intended
>>>>> recipient, please delete this message and contact Mr. Wickes immediately.
>>>>>
>>>>> ________________________________
>>>>> From: 明覺 <shi.minjue at gmail.com>
>>>>> To: bf-blender developers <bf-committers at blender.org>
>>>>> Sent: Monday, April 13, 2009 9:15:12 PM
>>>>> Subject: [Bf-committers] how to make python script contain and display utf-8
>>>>> characters in blender?
>>>>>
>>>>> Greetings!
>>>>>
>>>>> I'm working on my first python script in blender. I'm a chinese, and
>>>>> the default encoding of my system(debian linux) is utf-8, so I hope I
>>>>> can use utf-8 encoding in both python and blender. I have added the
>>>>> line into python:
>>>>> ---------------
>>>>> # coding: utf-8
>>>>> ------------
>>>>> and the python file can contain chinese characters already, but the
>>>>> problem is blender cannot display chinese fonts, how could i solve it?
>>>>> thanks.
>>>>>
>>>>> Minjue(明覺)
>>>>>
>>>>> --
>>>>> My platform is Debian-sid gnome mozilla eclipse monodevelop blender.
>>>>> _______________________________________________
>>>>> Bf-committers mailing list
>>>>> Bf-committers at blender.org
>>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Bf-committers mailing list
>>>>> Bf-committers at blender.org
>>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> My platform is debian-sid gnome mozilla eclipse monodevelop blender.
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>>
>>
>>
>> --
>> My platform is debian-sid gnome mozilla eclipse monodevelop blender.
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>
>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
My platform is debian-sid gnome mozilla eclipse monodevelop blender.


More information about the Bf-committers mailing list