[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: getting char data out of QStrings in Qt 2.0
From: Alex Zepeda <garbanzo () hooked ! net>
Date: 1999-04-30 22:54:48
[Download RAW message or body]
On Fri, 30 Apr 1999, Warwick Allison wrote:
> The preferred method is simply NOT TO DO IT. When converting to "ascii" you
> need to consider WHY. For example, if you want to write a "text file", should
> that be in UTF-8, UTF-16, or the user's locale-specific 8-bit encoding?
>
> Whenever you call QString::ascii() you poke a stick in the eye of a non-Latin1
> user.
>
> When you call:
>
> foo(bar.ascii())
>
> you're probably better off fixing foo() to take const QString&.
Well how else are we going to get at a bytearray useable for such things
as write(2). Some of us don't like using QFile or QTextStreams quite yet.
- alex
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic