Discover get unicode for character, include the articles, news, trends, analysis and practical advice about get unicode for character on alibabacloud.com
Very detailed very good, turn around to study:Reprinted from: http://www.cnblogs.com/lidabo/archive/2013/11/27/3446518.html1, character encoding, internal code, incidentally introduced Chinese character codingCharacters must be encoded before they
The problem of character encoding seems to be very small, often overlooked by technical staff, but it can easily lead to some puzzling problems. Here is a summary of the character encoding of some of the popular knowledge, I hope to be helpful to
Document directory
Unicode compilation settings:
UNICODE: Wide-Byte Character Set
Development Process:
Unicode macro and _ Unicode macro
In Windows programming, Unicode programs are often compiled by adding Unicode or _ Unicode compiling
About the Unicode character set(2011-10-20 20:54:03) The initial Unicode encoding is a fixed-length, 16-bit, or 22-byte representation of a character, which can represent a total of 65,536 characters. Obviously, it is not enough to represent all the
ArticleDirectory
Unicode compilation settings:
UNICODE: Wide-Byte Character Set
Development Process:
1. Regular Expressions matching Unicode characters
Original article:
Q How to display Unicode strings
A
If the program defines _ Unicode macro, directly use
Wchar * STR = l "unicodestring ";
Textout (0, 0, STR );
Otherwise, the conversion type is required.
# Include
Wchar * STR = l "unicodestring ";
Bstr_t str1 =
Reference:Http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.htmlHttp://www.cnblogs.com/mjgforever/archive/2008/02/27/1083135.html1. ASCII codeWe know that inside the computer, all the information is ultimately represented as a binary
Unicode Environment SettingsWhen installing Visual Studio, you must add the Unicode option when selecting VC ++ to ensure that the relevant library files can be copied to system32.
Unicode compilation settings:C/C ++, Preprocessor difinitions
1: first, change the project attribute to a multi-byte character set.2: For all l "strings", remove L, or change to => _ T ("string ")PS1: _ t is an automatically replaced macro. It can be replaced with something different based on the Compilation
Unicode Environment SettingsWhen installing Visual Studio, you must add the Unicode option when selecting VC ++ to ensure that the relevant library files can be copied to system32.
Unicode compilation settings:C/C ++, Preprocessor difinitions remove
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.