summaryrefslogtreecommitdiffstats
path: root/krename/encodingplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krename/encodingplugin.cpp')
-rw-r--r--krename/encodingplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/krename/encodingplugin.cpp b/krename/encodingplugin.cpp
index 4c3018a..75888a0 100644
--- a/krename/encodingplugin.cpp
+++ b/krename/encodingplugin.cpp
@@ -108,11 +108,11 @@ TQString EncodingPlugin::processFile( BatchRenamer*, int, TQString token, int )
TQString input = token;
TQString unicode = TQString();
- TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec); // get the codec for KOI8-R
- TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec);
+ TQTextCodec* toUnicode = TQTextCodec::codecForName(m_input_codec.ascii()); // get the codec for KOI8-R
+ TQTextCodec* fromUnicode = TQTextCodec::codecForName(m_output_codec.ascii());
- unicode = toUnicode->toUnicode( input );
- return fromUnicode->fromUnicode( unicode );
+ unicode = toUnicode->toUnicode( input.ascii() );
+ return fromUnicode->fromUnicode( unicode.ascii() );
}
void EncodingPlugin::finished()