Opened 12 years ago

Closed 12 years ago

#2234 closed defect (fixed)

Add UTF-8 conversion command to OMEdit

Reported by: Martin Sjölund Owned by: Adeel Asghar
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc: Peter Fritzson

Description

  1. Select directory
  2. Choose source encoding
  3. OMEdit scans for all .mo-files and converts them to UTF-8
QTextStream in(&inFile);
in.setCodec("Windows-1252");
// ...
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out.setCodec("UTF-8");
out.setGenerateByteOrderMark(false);
out << str;
file.close();

I suggest making it an option when opening files to convert them. And making a drop-down box using QTextCodec::availableCodecs(), instead of making the user input the encoding himself.

Change History (1)

comment:1 by Adeel Asghar, 12 years ago

Resolution: fixed
Status: newclosed

Added in r16304.

Note: See TracTickets for help on using tickets.