utf-16
utfcpp and Win32 wide API
Is it good/safe/possible to use the tiny utfcpp library for converting everything I get back from the wide Windows API (FindFirstFileW and such) to a valid UTF8 representation using utf16to8?[详细]
2023-01-08 14:24 分类:问答How to best deal with Windows' 16-bit wchar_t ugliness?
I\'m writing a wrapper layer to be used with mingw which provides the application with a virtual UTF-8 environment. Functions which deal with filenames are wrappers which co开发者_StackOverflow社区nve[详细]
2023-01-07 11:02 分类:问答Replace string that contain #0?
I use this function to read file to string function LoadFile(const FileName: TFileName): string; begin with TFileStream.Create(FileName,[详细]
2023-01-05 20:50 分类:问答Advice on marshalled string that can be either ASCII or UTF-16
Welcome to unsafe land. I\'m doing P/Invoke to a legacy lib that gives me a 0-terminated C-style string in the form of an unknown-length unmanaged byte buffer that can be either ASCII or UTF-16, but[详细]
2023-01-04 22:15 分类:问答Ruby works well with Unicode character in Filenames on Mac OS X and on Linux, but why to make it work on Windows, it took at least 2 years?
Ruby works well with Unicode character in File Path and Filenames on Mac OS X and on Linux, but why to make it work on Windows, it took more than 2 years?[详细]
2023-01-04 17:35 分类:问答pyODBC and Unicode
I\'m working with pyODBC communicate with a MS SQL 2005 Express server. The table to which i\'m trying to save the data consists of nvarchar columns.[详细]
2023-01-03 13:20 分类:问答Character Encoding
My text editor allows me to code in several different character formats Ansi, UTF-8, UTF-8(No BOM), UTF-16LE, and UTF-16BE.[详细]
2023-01-03 11:55 分类:问答How can I decode UTF-16 data in Perl when I don't know the byte order?
If I open a file ( and spec开发者_如何学Goify an encoding directly ) : open(my $file,\"<:encoding(UTF-16)\",\"some.file\") || die \"error $!\\n\";[详细]
2022-12-31 12:22 分类:问答Convert UTF-16 to UTF-8 under Windows and Linux, in C
I was wondering if there is a recommended \'cross\' Windows and Lin开发者_高级运维ux method for the purpose of converting strings from UTF-16LE to UTF-8? or one should use different methods for each e[详细]
2022-12-30 17:02 分类:问答How to define a string literal containing non-ASCII characters?
I\'m programming in VB.NET using Visual Studio 2008. I need to define a string literal containing the character \"÷\" equivalent to Chr(247).[详细]
2022-12-30 16:10 分类:问答