[fpc-devel] Controlling the output of the widestring manager
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Tue Nov 27 20:51:22 CET 2007
On Nov 27, 2007 8:37 PM, Daniƫl Mantione <daniel.mantione at freepascal.org> wrote:
> A more generic solution is necessary; one can want to output strings in a
> specific encoding, utf-8 is only one of the specific encodings that are
> demanded. Therefore a boolean is not a good solution.
Win32Wide2Ansi just calls WideCharToMultiByte, which reading ms docs:
http://msdn2.microsoft.com/en-us/library/ms776420.aspx
I couldn't find any way to output to an arbitrary encoding. I don't
know if this situation is similar on linux.
So it may be impossible to implement what you suggest in a reasonable way.
Having said that I consider outputing always to an encoding which
isn't the current locale and isn't utf-8 a very corner use case, if it
has any utility at all. Being a very corner case one could use a
special library to achieve it.
thanks,
--
Felipe Monteiro de Carvalho
More information about the fpc-devel
mailing list