MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014673Open CASCADE[OCCT] OCCT:Foundation Classespublic2007-01-29 14:272017-07-27 09:43
Reporterabv 
Assigned Toabv 
PrioritynormalSeverityfeature 
StatusassignedResolutionopen 
PlatformOSAllOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0014673: Provide true support for Unicode symbols
DescriptionThis improvement is inspired by OCC14672: as it turns, regardless of the fact
that OCCT provides class TCollection_ExtendedString and uses it in many places
(e.g. OCAF), de-facto the possibility to store Unicode (or any other non-ascii)
symbols by means of that class is almost never used (at least, not in OCC).

That is obviously bad: if we provide a class capable of storing Unicode
strings, and use it in many places, the possibility to have non-ascii symbols
in it should be supported.

For moving in that direction, the following steps are proposed:

1. Provide methods to convert Unicode string in the form of
TCollection_ExtendedString to other encodings; at least most widespread Ascii-
based encodings like HTML and UTF-8 are necessary

2. Provide method to dump ExtendedString (interpreted as Unicode one) to DRAW
Tcl interpreter (which has complete support for encodings and uses internally
UTF-8)

3. Revise the code of OCCT where ExtendedString is converted to Ascii one (they
can be found either by revising modifications made in OCC14672 or directly by
searching OCCT code for "'?'" symbol used in safe conversions, or by
Is(An)Ascii() method), for a goal to provide more adequate conversion.

a) At least, the output to DRAW can use directly Unicode encoding.

b) Another good candidate for such improvement is XML persistence (LDOM* and
other dependent packages) -- see also OCC983 and OCC5032

c) As it seems, the visualisation already contains some code handling Unicode,
though in many cases (e.g. when computing size of text) it converts it to Ascii

d) Package Resource can also be considered. Note that it already contains some
code for converting Unicode strings to and from some far-eastern encodings
(EUC, GB and ShiftJIS) -- see Resource_Unicode class
TagsNo tags attached.
Test case number
Attached Filescxx file icon OSD_Path.cxx (41,193 bytes) 2011-04-01 12:50

- Relationships
parent of 0022484closedbugmaster Open CASCADE UNICODE characters support. 
parent of 0022125closedbugmaster Open CASCADE TCollection_ExtendedString: conversion from UTF-8 to unicode 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0054868)
Vico Liang (updater)
2016-06-09 20:48

There is a post "Better support XML Unicode storage in OCAF"

http://dev.opencascade.org/index.php?q=node/1157 [^]

- Issue History
Date Modified Username Field Change
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2011-12-05 10:42 abv Fixed in Version EMPTY =>
2011-12-05 10:42 abv Target Version => 6.5.3
2011-12-05 10:42 abv Description Updated View Revisions
2011-12-05 10:43 abv Relationship added parent of 0022484
2011-12-05 10:45 abv Relationship added parent of 0022125
2012-01-12 15:16 ysn Note Edited: 0012403
2012-01-12 17:27 ysn Note Revision Dropped: 12403: 0002210
2012-01-12 17:28 ysn Note Edited: 0012403 View Revisions
2012-01-12 17:29 ysn Project Open CASCADE => Internal
2012-03-12 07:45 abv Target Version 6.5.3 => 6.5.4
2012-10-20 08:02 abv Relationship added parent of 0023479
2012-10-20 08:06 abv Note Added: 0021865
2012-10-20 08:06 abv Status new => feedback
2012-10-20 08:11 abv Target Version 6.5.4 => Unscheduled
2012-10-26 10:55 bugmaster Note Deleted: 0012404
2012-10-26 10:55 bugmaster Note Deleted: 0021865
2012-10-26 10:56 bugmaster Project Internal => Open CASCADE
2012-10-30 09:19 user533 Note Deleted: 0012403
2012-10-30 09:29 abv Assigned To bugmaster => abv
2012-10-30 09:29 abv Status feedback => assigned
2014-10-01 10:04 abv Target Version Unscheduled => 7.1.0
2016-06-09 20:48 Vico Liang Note Added: 0054868
2016-11-09 11:17 abv Target Version 7.1.0 => 7.2.0
2017-07-27 09:43 abv Target Version 7.2.0 => 7.4.0*


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker