From: Michal Suchanek Date: 2006-06-20T23:33:43+09:00 Subject: Re: Unicode roadmap? On 6/20/06, Timothy Bennett wrote: > On 6/20/06, Michal Suchanek wrote: > > > > > > If I read pieces of text from web pages they can be in different > > encodings. I do not see any reason why such pieces of text could not > > be automatically concatenated as long as they are all subset of > > unicode. > > > Having different encodings on one web page is a good way to make sure that > the page won't display correctly, since all the browsers I know of display > all text on a page using just one encoding. Granted, if the encoding is a > subset of unicode, it may still manage to work out, but personally I keep > running in to pages that display some of the characters as garbage no matter > what encoding I instruct my browser to use. So, no, I don't think it should > be valid to concatenate strings with different encodings. No, I meant that the strings are, of course, converted to a common encoding such as utf-8 before they are concatenated. The point is that you do not have to care in which encoding you obtained the pieces and convert them manually to a common encoding if the string class can do it automatically for you. Thanks Michal