Opened 12 years ago

Closed 12 years ago

#1756 closed enhancement (fixed)

OMEdit should be able to convert files to UTF-8

Reported by: Per Östlund Owned by: Adeel Asghar
Priority: critical Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description

OMEdit refuses to load files that are not encoded as UTF-8, which is correct but not very userfriendly. It would be much better if OMEdit would tell the user that the file(s) is incorrectly encoded, and offer to convert the file(s) to UTF-8. I'm sure that QT is capable of doing that relatively easy. I know that it's actually OMC that refuses to load the file, but I think the conversion functionality fits better in OMEdit.

Change History (4)

comment:1 by Martin Sjölund, 12 years ago

Sadly there does not seem to be a builtin file picker dialog in Qt that has an option to also pick encoding.
Inherit from the dialog, add a combined input/dropdown list (to pick from the most common encodings, or enter whatever the user feels like since we forgot his favourite).
Adeel will have a lot to do when he gets back :)

comment:2 by Martin Sjölund, 12 years ago

Milestone: 1.9.0

comment:3 by Martin Sjölund, 12 years ago

Component: Interactive Model Editor InterfaceOMEdit

comment:4 by Adeel Asghar, 12 years ago

Resolution: fixed
Status: newclosed

OMEdit now allow users to tell the encoding the want to use for loading the file. If no encoding is defined by user then the default UTF-8 encoding is used.

Note: See TracTickets for help on using tickets.