|
|
@ -109,7 +109,7 @@ class LCHMFileImpl
|
|
|
|
//! Encode the string with the currently selected text codec, if possible. Or return as-is, if not.
|
|
|
|
//! Encode the string with the currently selected text codec, if possible. Or return as-is, if not.
|
|
|
|
inline TQString encodeWithCurrentCodec (const TQString& str) const
|
|
|
|
inline TQString encodeWithCurrentCodec (const TQString& str) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (m_textCodec ? m_textCodec->toUnicode (str) : str);
|
|
|
|
return (m_textCodec ? m_textCodec->toUnicode (str.utf8()) : str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//! Encode the string with the currently selected text codec, if possible. Or return as-is, if not.
|
|
|
|
//! Encode the string with the currently selected text codec, if possible. Or return as-is, if not.
|
|
|
@ -122,7 +122,7 @@ class LCHMFileImpl
|
|
|
|
//! Or return as-is, if not.
|
|
|
|
//! Or return as-is, if not.
|
|
|
|
inline TQString encodeInternalWithCurrentCodec (const TQString& str) const
|
|
|
|
inline TQString encodeInternalWithCurrentCodec (const TQString& str) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (m_textCodecForSpecialFiles ? m_textCodecForSpecialFiles->toUnicode (str) : str);
|
|
|
|
return (m_textCodecForSpecialFiles ? m_textCodecForSpecialFiles->toUnicode (str.utf8()) : str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//! Encode the string from internal files with the currently selected text codec, if possible.
|
|
|
|
//! Encode the string from internal files with the currently selected text codec, if possible.
|
|
|
|