Results 1 to 11 of 11

Thread: [RESOLVED] RTF didn't show Unicode

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2010
    Posts
    1,103

    Resolved [RESOLVED] RTF didn't show Unicode

    I make a simple RTF writer to draw a textbox and put Chinese characters into Textbox,but it can't show Chinese characters,only English ANSI string.

    CHS:\u27426\u-28722to TaiWan

    It supposes to show "CHS:欢迎to Taiwan",but only shows "CHS:to Taiwan".
    According to RTF specifications 1.6 above,what is the wrong with below rtf text? Why it cut \u27426\u-28722 by missing some tags?

    {{\rtf1\ansi\ansicpg1253\uc0\deff0{\fonttbl{\f0\fnil\fcharset0\fprq2 Arial;}}{\colortbl;\red0\green0\blue0;\red255\green255\blue255;}{\stylesheet{\fs20 \snext0 Normal;}}{\info{\author }{\operator }{\title }{\subject }{\comment Athanasios Gardos - RTFWriter.dll}{\creatim\yr2011\mo5\dy14\hr20\min26}{\revtim\yr2011\mo5\dy14\hr20\min26}{\version2}{\ edmins7}{\nofpages1}{\nofwords0}{\nofchars0}{\vern8351}}\paperw11906\paperh16837\margl1440\margr1440 \margt1440\margb1440\widowctrl\ftnbj \sectd \pmmetafile28\endnhere\pard\plain\ql\f0\fs20\cb2\cf1 {{{\pard\plain{\*\do\dobxcolumn\dobypara\dodhgt2250\dpx0\dpy0\dpxsize4500\dpysize2250\dpgroup\dpcoun t2\dpx25\dpy230\dpxsize4500\dpysize2250\dptxbx\dpx25\dpy230\dpxsize4500\dpysize2250\dpfillfgcr0\dpfi llfgcg0\dpfillfgcb0\dpfillbgcr255\dpfillbgcg255\dpfillbgcb255\dpfillpat0\dplinew15\dplinecor0\dpline cog0\dplinecob0{\dptxbxtext\pard\plain CHS:\u27426\u-28722to TaiWan\par}\dpendgroup\dpx0\dpy0\dpxsize0\dpysize0}}\brdrt\brdrnone\brdrb\brdrnone\brdrl\brdrnone\brdrr\br drnone\ql\par
    }}}
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Jonney; May 14th, 2011 at 07:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width