![]() |
【转帖】japanese te
japanese text
japanese text hello, i have this japanese text in my dxf file "{\fms ui gothic|b0|i0|c128|p17;陡颇 颇 狭玖胁牟 恫露}". there also some other japanese text in this dxf file. the copepage dwgcodepage for this dxf is 1252. so its not converting/displaying this japanese text correctly upon importing. how do i specify codepage to 932(japanese) only for this text? as a trial, i edited the dwgcodepage in this dxf to 932, the japenese text is imported/displayed correctly. appreciate your help; thanks in advance, kedar a sample file would be helpful... sergey slezkin hello sergey, please find the file attached. its saved as autocad 2000 dxf file. thanks, kedar attached files (15.0 kb, 13 views) hi, i havn' t installed the tty-font ms ui gothic on my system, then dwgdirect used a standard font and i saw "...?????..". so i switched the font for the japanese text to quote: {\farial unicode ms|b0|i0|c128|p17;陡颇 颇 狭玖胁牟 恫露} in your example. as result, i can see your japanese text, but can't read. __________ ralph attached images (13.6 kb, 23 views) last edited by hi-cads; 11th january 2007 at 12:43 amfff">. thanks for the reply, hi-cads. i tried editing the font to arial unicode ms instead of gothic in the dxf; still got the same error. kedar hi kedar, your text string has information about code pade ( |c128 = cp_ansi_932). so this text must be converted to unicode correctly. what version dwgdirect do you use? and could you explain where and which coding you wish to get text? possible it will be helpful. textproc() method of odgigeometry... classes has parameter odgitextstyle which has method getcodepage(). it corresponds to code page of passed text. best regards, sergey z. hey sergey, i m using v1.13. i tried to get the codepage by using explodefragments(). this way, i can retreive the codepage value of this mtext but its in a callback. i checked the examples in the dwg toolkit, but i still have some problems. can you share an example of explodefragments() & oddbtextiterator? i can get the codepage value by using these two methods, right?? thanks, kedar |
所有的时间均为北京时间。 现在的时间是 04:57 AM. |