Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,761 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,751 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Displaying Chinese Characters

 
Reply to this topicStart new topic

Displaying Chinese Characters

fuzzyjello
post 17 Oct, 2007 - 07:44 AM
Post #1


New D.I.C Head

*
Joined: 13 Apr, 2007
Posts: 19


My Contributions


I have an unusual problem. I have a string of Chinese lettering ("第二十屆北美漢語語言學會議", which displays properly on a .htm or .html page, but displays this "第二å��å±†åŒ—ç¾Žæ¼¢èªžèªžè¨€å¸æœƒè°" on a .cfm page.

Here is the code I am using:

CODE

#chinese {
    color: #707070;
    font-size: .8em;
    letter-spacing:.2em;
}
<span id="chinese" lang="zh">第二十屆北美漢語語言學會議</span>


I have tried several dialects as langauge codes, and none of them have come close. Any ideas on how to get ColdFusion to recognize these characters would be most appreciated! Thanks!!
User is offlineProfile CardPM

Go to the top of the page


dswens
post 17 Oct, 2007 - 10:01 AM
Post #2


New D.I.C Head

*
Joined: 16 Oct, 2007
Posts: 34


My Contributions


I'm not sure if it's really important that it be "text", but you could always make the characters into a graphic.



QUOTE(fuzzyjello @ 17 Oct, 2007 - 07:44 AM) *

I have an unusual problem. I have a string of Chinese lettering ("第二十屆北美漢語語言學會議", which displays properly on a .htm or .html page, but displays this "第二å��å±†åŒ—ç¾Žæ¼¢èªžèªžè¨€å¸æœƒè°" on a .cfm page.

Here is the code I am using:

CODE

#chinese {
    color: #707070;
    font-size: .8em;
    letter-spacing:.2em;
}
<span id="chinese" lang="zh">第二十屆北美漢語語言學會議</span>


I have tried several dialects as langauge codes, and none of them have come close. Any ideas on how to get ColdFusion to recognize these characters would be most appreciated! Thanks!!

User is offlineProfile CardPM

Go to the top of the page

skyhawk133
post 17 Oct, 2007 - 10:02 AM
Post #3


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,371



Thanked 33 times

Dream Kudos: 1600

Expert In: Web Development

My Contributions


What encoding are you using? I think CFContent will let you change the encoding type of the document. ColdFusion might be defaulting to a encoding type that's not compatible with those characters?
User is offlineProfile CardPM

Go to the top of the page

fuzzyjello
post 17 Oct, 2007 - 11:09 AM
Post #4


New D.I.C Head

*
Joined: 13 Apr, 2007
Posts: 19


My Contributions


QUOTE(skyhawk133 @ 17 Oct, 2007 - 10:02 AM) *

What encoding are you using? I think CFContent will let you change the encoding type of the document. ColdFusion might be defaulting to a encoding type that's not compatible with those characters?


True, the default encoding was UTF-8 for output. I tried big5 and other Chinese dialects for my character sets, but none seemed to work.

Fortunately, I found a Chinese characters to Unicode translator, and that did the trick.

http://www.chinese-tools.com/tools/converter-unicode.html, if anyone is interested.

Thanks for your input guys.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 01:30PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month