Re: A simple question
A point of correctness - UTF-8 _is_ Unicode! It's an
abbreviation for: 8-bit Unicode Transformation Format.
I believe you are confusing UTF-16 (the Windows chosen
Unicode representation format) with Unicode. Alas, this
is very common with Windows developers...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:1403CAA8-DF5B-4B1A-AD7A-032F88DE4B9C@microsoft.com...
I don't think there are many, if any, composed characters in Spanish so
your files and strings would double in size, but the impact of this depends
on how much data you are storing. For example, if it grows from 1K to 2K
you wouldn't likely notice any impact. If you are storing 200MB then that
would be a huge difference of course.
Others have mentioned storing your data (files) in UTF-8 and that would
give you almost the same size as ANSI, but you would not be able to use
that format internally so you'd still have to use Unicode in your program.
I've started using Unicode in all of my problems and I haven't noticed
much impact at all. I think this is kind of the way the future is going.
.NET programs, for example, are all Unicode.
You can use WideCharToMultiByte() and MultiByteToWideChar() to convert
between Unicode and UTF-8 should you decide to store you files in that
format.
Tom
"Rick" <Rick@discussions.microsoft.com> wrote in message
news:74F996F4-72DF-40E8-951E-12D3E2ADB25E@microsoft.com...
Thank you.
Will this "inflate" the files? They should increase in size.
--
Thanks,
Rick.
"Every problem needs a fast and efficient solution"
"Alex Blekhman" wrote:
"Rick" wrote:
I have to use Microsoft VC 6.0 in and old Spanish
Application. I need to use
Spanish special character, such as "??" and stress marks
(??, ??, ??, ??, ??). When
I run VC I get funny characters on the output.
The system uses ofstream to save data on text files (where
the funny
characters are).
Any simple solution?
The simplest solution is to convert the application to
Unicode and to use only wide characters. Then you don't need
to worry about special characters.
Alex