2007年11月09日 星期五 16:08
在别的编辑器里可以直接: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
2007年11月09日 星期五 16:25
在 #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
2007年11月11日 星期日 10:19
不行的,有中文就出错 在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
Zeuux © 2025
京ICP备05028076号