Opened 10 years ago
Last modified 10 years ago
#3033 closed defect
OMEdit does not seem to treat UTF-8 in its Text View — at Version 1
Reported by: | Rüdiger Franke | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.2 |
Component: | OMEdit | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
Localization of models requires doc strings with non-ASCII characters, like:
model Foo Real mu = 1e-6 "Does OpenModelica treat UTF-8, like µ or ö in Linköping?"; end Foo;
Encoded with UTF-8, OMEdit opens the model, but scrambles the non-ASCII characters in its Text View:
model Foo Real mu = 1e-6 "Does OpenModelica treat UTF-8, like µ or ö in Linköping?"; end Foo;
One can edit the model and save it. One must not introduce a new non-ASCII char though, because OMEdit will replace all of them with a question mark then?
It is possible to translate and simulate the model. The Variables Browser in the plot pane treats UTF-8 encoded doc strings correctly.
Is this a bug in the Text View of OMEdit?
Change History (2)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
by , 10 years ago
Attachment: | screenshot.png added |
---|
Note:
See TracTickets
for help on using tickets.