Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

What is the codepage,Fontface name, Charset and encoding for dispalying Unicode text (Chinese characters) in RichEditControl 2.0?

$
0
0

I am using RichEditControl 2.0, where some chars to be displayed are to be converted to Chinese chars using corressponding codepage, What is the codepage,Fontface name, Charset and encoding for dispalying Unicode text (Chinese characters). My input string will be like this, "\'c4\'ac\'c8\'cf\'c3\'e6\'b0\'e5"

my input to rich edit2.0 is: "{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset134 System;}}{\colortbl ;\red0\green0\blue0;}\viewkind4\uc1\pard\cf1\lang2052\f0\fs20 /\'ce\'c4\'b1\'be\'b3\'ac\'c1\'b4\'bd\'d3\par}"

And output When proj Built in Multibyte: /文本超链接

But when build in Unicode output is:

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset134 System;}}{\colortbl ;\red0\green0\blue0;}\viewkind4\uc1\pard\cf1\lang2052\f0\fs20 /\'ce\'c4\'b1\'be\'b3\'ac\'c1\'b4\'bd\'d3\par}

What should be done to the i/p string to get same chinese o/p when proj built in unicode.


To Achive Success stay Relaxed, Not Stressed.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>