MantisBT - Open CASCADE
View Issue Details
0025302Open CASCADE[OCCT] OCCT:Foundation Classespublic2014-10-01 11:282017-08-01 15:57
pdn 
abv 
normalminor 
closedno change required 
[OCCT] 6.8.0 
[OCCT] Unscheduled 
Not needed
0025302: Incorrect locale and unicode support in Draw console
Draw tcl console process locale strings incorrectly. The files with unicode or locale symbols are processed properly.
Please use the following script:

set s сабака
put $s

set s [encoding convertto utf-8 сабака]
encoding convertfrom utf-8 $s

vdrawtext сабака 0 0 0 255 255 255 0 0 0 1 50 0 Mona 1




No tags attached.
related to 0022484closed bugmaster UNICODE characters support. 
related to 0026380closed bugmaster OSD_SharedLibrary - handle UTF-8 file paths 
png dtext-codec.png (7,347) 2014-10-19 22:55
https://tracker.dev.opencascade.org/
Issue History
2014-10-01 11:28pdnNew Issue
2014-10-01 11:28pdnAssigned To => abv
2014-10-01 11:28pdnRelationship addedrelated to 0022484
2014-10-19 22:46shoogenNote Added: 0033307
2014-10-19 22:55shoogenFile Added: dtext-codec.png
2014-10-20 10:24abvNote Added: 0033311
2015-06-29 20:15kgvRelationship addedrelated to 0026380
2017-08-01 15:57mkvTest case number => Not needed
2017-08-01 15:57mkvStatusnew => closed
2017-08-01 15:57mkvResolutionopen => no change required

Notes
(0033307)
shoogen   
2014-10-19 22:46   
which encoding do a have to use for "dtext"?
(0033311)
abv   
2014-10-20 10:24   
Hello Sebastian,

Command "dtext" is old one and it uses system API to draw text (TextOut on Windows and XDrawString on X11). It will work correctly only for strings containing plain Ascii text (in range 0-127). Please use vdrawtext command instead. If you have strong need to use old DRAW graphic interface, you can try to improve it to support Unicode...