Python论坛  - 讨论区

标题:[python-chinese] 请教关于BOA使用中文的问题

2007年11月09日 星期五 16:08

jason python.nbfan python.nbfan在gmail.com
星期五 十一月 9 16:08:05 HKT 2007

在别的编辑器里可以直接:str="中文",但是boa里就不行保存就提示下面错误:
16:06:24: Traceback (most recent call last):
16:06:24:   File "F:\Developer\python\BOA\boa\Models\PythonControllers.py",
line 422, in OnSave
16:06:24:   File "F:\Developer\python\BOA\boa\Models\Controllers.py", line
162, in OnSave
16:06:24:   File "F:\Developer\python\BOA\boa\Editor.py", line 984, in
activeModSaveOrSaveAs     modulePage.model.refreshFromViews()
16:06:24:   File "F:\Developer\python\BOA\boa\Models\EditorModels.py", line
97, in refreshFromViews
16:06:24:   File "F:\Developer\python\BOA\boa\Views\SourceViews.py", line
195, in refreshModel
16:06:24:   File "F:\Developer\python\BOA\boa\Utils.py", line 964, in
stringFromControl     raise Exception, s
16:06:24: Exception: 

import 代中文字的文件也不行,请问如何解决?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071109/0bb1e071/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月09日 星期五 16:25

otherrrr otherrrr在gmail.com
星期五 十一月 9 16:25:43 HKT 2007

在
#Boa:Frame:FrameMain
之后加上
# -*- coding: cp936 -*-
就可以 aaa='中文' 了,

import 的时候最好不要调用中文名文件

On 11/9/07, jason python.nbfan <python.nbfan at gmail.com> wrote:
>
> 在别的编辑器里可以直接:str="中文",但是boa里就不行保存就提示下面错误:
> 16:06:24: Traceback (most recent call last):
> 16:06:24:   File
> "F:\Developer\python\BOA\boa\Models\PythonControllers.py", line 422, in
> OnSave
> 16:06:24:   File "F:\Developer\python\BOA\boa\Models\Controllers.py", line
> 162, in OnSave
> 16:06:24:   File "F:\Developer\python\BOA\boa\Editor.py", line 984, in
> activeModSaveOrSaveAs     modulePage.model.refreshFromViews()
> 16:06:24:   File "F:\Developer\python\BOA\boa\Models\EditorModels.py",
> line 97, in refreshFromViews
> 16:06:24:   File "F:\Developer\python\BOA\boa\Views\SourceViews.py", line
> 195, in refreshModel
> 16:06:24:   File "F:\Developer\python\BOA\boa\Utils.py", line 964, in
> stringFromControl     raise Exception, s
> 16:06:24: Exception: 
>
> import 代中文字的文件也不行,请问如何解决?
>
>
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071109/4fa850bf/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年11月11日 星期日 10:19

jason python.nbfan python.nbfan在gmail.com
星期日 十一月 11 10:19:09 HKT 2007

 不行的,有中文就出错

在07-11-9,otherrrr <otherrrr at gmail.com> 写道:
>
>> #Boa:Frame:FrameMain
> 之后加上
> # -*- coding: cp936 -*-
> 就可以 aaa='中文' 了,
>
> import 的时候最好不要调用中文名文件
>
> On 11/9/07, jason python.nbfan < python.nbfan at gmail.com> wrote:
>
> > 在别的编辑器里可以直接:str="中文",但是boa里就不行保存就提示下面错误:
> > 16:06:24: Traceback (most recent call last):
> > 16:06:24:   File
> > "F:\Developer\python\BOA\boa\Models\PythonControllers.py", line 422, in
> > OnSave
> > 16:06:24:   File "F:\Developer\python\BOA\boa\Models\Controllers.py",
> > line 162, in OnSave
> > 16:06:24:   File "F:\Developer\python\BOA\boa\Editor.py", line 984, in
> > activeModSaveOrSaveAs     modulePage.model.refreshFromViews()
> > 16:06:24:   File "F:\Developer\python\BOA\boa\Models\EditorModels.py",
> > line 97, in refreshFromViews
> > 16:06:24:   File "F:\Developer\python\BOA\boa\Views\SourceViews.py",
> > line 195, in refreshModel
> > 16:06:24:   File "F:\Developer\python\BOA\boa\Utils.py", line 964, in
> > stringFromControl     raise Exception, s
> > 16:06:24: Exception: 
> >
> > import 代中文字的文件也不行,请问如何解决?
> >
> >
> >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071111/e8d96f82/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号