i18n and QStrings
    Andras Mantia 
    amantia at kde.org
       
    Sat Nov 29 16:53:18 GMT 2003
    
    
  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
 As today I hit the problem that my QString got damaged after a i18n call (it 
contained unicode chars - eg.  ű = udoubleacute - and it was replaced by ?) 
because i18n() expects const char *, I think it would be a good idea to add a 
QString i18n(const QString& text) which would call simply be:
QString i18n(const QString& text)
{
   return i18n(text.utf8());
}
Is it a bad idea? Yeah, I don't really know which one will be picked up in 
case of i18n("foo")...
Andras
- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/yM7+TQdfac6L/08RAnwOAJwNyBlInA+oUI2L08J5P1FASjF8RwCfbwLx
f2ALDP/JjEzxX+PAAd5isG0=
=l0i6
-----END PGP SIGNATURE-----
    
    
More information about the kde-core-devel
mailing list