Encoding Conversion Sample ========================== This sample demonstrates how to handle the GB18030 encoded string. For example, this sample shows how to convert a string from unicode to GB18030, and how to count the byte number of the string encoded in GB18030. Sample Language Implementations =============================== This sample is available in the following language implementations: C# Visual Basic To build the sample using the command prompt: ============================================= 1. Open the Command Prompt window and navigate to one of the language-specific subdirectories under the GB18030EncodingSample directory. 2. Type msbuild GB18030EncodingCS.sln or msbuild GB18030EncodingVB.sln, depending on your choice of programming language. To build the sample using Visual Studio: ======================================= 1. Open Windows Explorer and navigate to one of the language-specific subdirectories under the GB18030EncodingSample directory. 2. Double-click the icon for the .sln (solution) file to open the file in Visual Studio. 3. In the Build menu, select Build Solution. The application will be built in the default \bin or \bin\Debug directory. To run the sample: ================= 1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer. 2. Type GB18030EncodingCS.exe or msbuild GB18030EncodingVB.exe at the command line, or double-click the icon for GB18030EncodingCS.exe or GB18030EncodingVB.exe to launch it from Windows Explorer.