Alex D. schrieb:
Alex D. schrieb:
Hi all,
I try to "make api" and that's what i become:
* Finalising tree...
* Writing JSON API file to ./api/script/apidata.js
main()
.
.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 132: ordinal not in range(128)
How can i find out what character is the problem?
Hi Alex,
make shure all your javaScript files are encoded as UTF-8. Python
should have no problems with special characters encoded as UTF-8.
Best Fabian
Thx for your reply Fabian,
if some of my javaScript files are not UTF-8 conform then i would
have problems with "make build" as well, wouldn't I? But "make build"
is going through.
Right. Could you post the full error message, so I can try to track
this. BTW char 0xC3 is the unicode character "Ã".
Best Fabian
I've searched all my files for 0xC3 and have found it only in *.png
files. Here is my trace(attachment).
****************************************************************************
GENERATING Infodesk API
****************************************************************************
PREPARING LOCALIZATION
----------------------------------------------------------------------------
* Processing locales...
- Locale: de_DE
- Locale: C
PREPARING FRAMEWORK TRANSLATION
----------------------------------------------------------------------------
* Processing source code: ..
- Found 69 messages
* Processing translations...
- Translation: de_DE
- Merging translation file...
- Generating catalog...
- Translation: C
- Merging translation file...
- Generating catalog...
PREPARING PROJECT TRANSLATION
----------------------------------------------------------------------------
* Processing source code:
........................................................................
- Found 0 messages
* Processing translations...
- Translation: de_DE
- Merging translation file...
- Generating catalog...
- Translation: C
- Merging translation file...
- Generating catalog...
INITIALIZATION:
----------------------------------------------------------------------------
* Processing arguments...
SOURCE LOADER:
----------------------------------------------------------------------------
* Indexing class paths...
- Indexing: ../qooxdoo/frontend/framework/source/class
- 297 classes were found
- Indexing: ../qooxdoo/frontend/application/apiviewer/source/class
- 6 classes were found
* Resolving dependencies: ..
* Found 2 modified classes
SORT OF INCLUDE LIST:
----------------------------------------------------------------------------
* Sorting 303 classes...
- Including 117 classes
STRING OPTIMIZATION:
----------------------------------------------------------------------------
* Searching strings:
.....................................................................................................................
* Found 1246 strings (used 3435 times)
* Replacing strings:
.....................................................................................................................
* Generating replacement...
LOCAL VARIABLE OPTIMIZATION:
----------------------------------------------------------------------------
* Optimizing variables:
.....................................................................................................................
CREATE COPY OF RESOURCES:
----------------------------------------------------------------------------
* Preparing configuration...
* Processing embeds...
- Found 1 embeds in apiviewer.Application
- Found 1 embeds in qx.manager.object.ColorManager
- Found 2 embeds in qx.theme.appearance.Classic
- Found 1 embeds in qx.manager.object.ImageManager
- Found 2 embeds in qx.ui.tree.AbstractTreeElement
- Found 1 embeds in qx.ui.basic.Image
- Found 2 embeds in qx.ui.tree.TreeFolder
- Found 1 embeds in apiviewer.TreeUtil
- Found 1 embeds in qx.client.History
- Found 1 embeds in qx.io.remote.IframeTransport
* Compiling embeds...
* Syncing files...
- Found 1 resources in qx.core.Object
- Copying static [static]
- Found 2 resources in apiviewer.Application
- Copying css [apistyles]
- Copying image [apiimages]
- Found 1 resources in qx.theme.icon.CrystalSvg
- Copying icon/crystalsvg [icon]
- Found 1 resources in qx.theme.widget.Windows
- Copying widget/windows [widget]
GENERATION OF SETTINGS:
----------------------------------------------------------------------------
* Processing input data...
GENERATION OF COMPILED SCRIPT:
----------------------------------------------------------------------------
* Compiling:
.....................................................................................................................
* Storing output as ./api/script/apiviewer.js...
INITIALIZATION:
----------------------------------------------------------------------------
* Processing arguments...
SOURCE LOADER:
----------------------------------------------------------------------------
* Indexing class paths...
- Indexing: ../qooxdoo/frontend/framework/source/class
- 297 classes were found
- Indexing: ./source/class
- 72 classes were found
* Resolving dependencies: ....
* Found 4 modified classes
SORT OF INCLUDE LIST:
----------------------------------------------------------------------------
* Sorting 369 classes...
* Error: Couldn't find required file: infodesk.translation.de
- Including 369 classes
GENERATION OF API:
----------------------------------------------------------------------------
* Generating API tree:
.................................................................................................................................................................................................................................................................................................................................................................................
* Finalising tree...
* Writing JSON API file to ./api/script/apidata.js
Traceback (most recent call last):
File "../qooxdoo/frontend/framework/tool/generator.py", line 1054, in ?
main()
File "../qooxdoo/frontend/framework/tool/generator.py", line 303, in main
argparser(sys.argv[1:])
File "../qooxdoo/frontend/framework/tool/generator.py", line 288, in argparser
execute(fileDb, moduleDb, options, options.packageId)
File "../qooxdoo/frontend/framework/tool/generator.py", line 844, in execute
jsonContent = tree.nodeToJsonString(docTree, "", "", "")
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
File
"/cygdrive/c/xampp/htdocs/infodesk/qooxdoo/frontend/framework/tool/modules/tree.py",
line 526, in nodeToJsonString
asString += nodeToJsonString(child, prefix, childPrefix, newLine) + ',' +
newLine
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 132:
ordinal not in range(128)
make: *** [exec-api-data] Error 1
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel