Viewing other languages in coldfusion (tougher then it sounds)

Discussion in 'Programming' started by Fatimah_M, Apr 12, 2007.

  1. #1
    I have been trying to figure this thing out for a while. I gave up and am going at it again. I have a couple of website in languages other then english (Chinese, Korean, and Russian, to name a few). The developer created the pages in HTML, without using includes (don't ask me why), I have taken it upon myself to convert these pages to CFML pages (as this is what the main site is in) and use include file and pretty it up a bit. For some reason though, the Chinese text is not showing up when I resave it as a .cfm page. In the editor it looks fine, but when I open it up on the site, everything looks like crap. Please do not insult me by saying to add the "<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">" or utf-8, seriously.. I am stuck, can someone please please help me with this... I am giving up hope!
     
    Fatimah_M, Apr 12, 2007 IP
  2. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using CFINCLUDE to include the files?

    This isn't quite what you said not to say, but have you tried:

    <cfhtmlhead text="<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">"> ? Not sure if that will make a differrence, but it's worth a try...
     
    IsRoss(), Apr 12, 2007 IP
  3. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    could you post a snippet of code for us to see what you are doing? thanks
     
    datropics, Apr 12, 2007 IP
  4. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you found a resolution to this problem?
     
    IsRoss(), Apr 19, 2007 IP
  5. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think I insulted him.
     
    IsRoss(), Apr 23, 2007 IP
  6. Fatimah_M

    Fatimah_M Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I assumed that DP would email me whenever I got a reply.... aparently not.... and I was once again trying to solve a problem and came across my own post.... i was quite amused. I actually did solve this problem and just thought I would share it with you. And you are really going to kick yourself, I know I did. The solution is.....
    <cfprocessingdirective pageencoding="..."> Thats it!!! That one little line, not even an entire line of code fixed all the problems! It was freaking amazing. But I have run into a new problem.... so put your thinking caps on...

    I used this for a Polish site, a Russian site and a Chinese site... each time I had to change the actual encoding but it was no biggie... but now I am trying to do a Korean site and I either get a "page encoding is not supported" message..... OR in a few cases..... "sun.io.ByteToCharEUC_KR.getIndex1()[S"

    Lets see if anyone can figure this out....

    Also is anyone able to edit these other language pages in dreamweaver? I can only edit them in VS, which I dont hate.... I am just used to dreamweaveer and its wonderful colorcoding....... Thanks in advanced for all of your help.... And late thanks to all those who replied before but I never responded to.... this time Ill keep an eye on this Thread! Thanks!
     
    Fatimah_M, May 25, 2007 IP
  7. Fatimah_M

    Fatimah_M Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    WHo did you think u insulted....?
     
    Fatimah_M, May 25, 2007 IP
  8. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Just messin' around...

    glad you found a solution, thanks for sharing it with us!
     
    IsRoss(), May 28, 2007 IP
  9. Fatimah_M

    Fatimah_M Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I know... just wanted to mention that "Him" isn't a he, its a she....

    But I do no have a complete resolution.... if you read the whole thing I cant fine the code for the Korean, or Japanese languages. Its not UTF-8 or any of the common ones.... when I try them I get a bunch of either Not supported messages or this other message which I cant remember but if anyone wants i can post it...... So thoughts? Thanks.

    Also, does anyone know how to get DPF to email me anytime this subscription is commented on or anything? I only know that someone responds if I go and check it.... which is kinda annoying. Thanks.
     
    Fatimah_M, May 29, 2007 IP
  10. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    at the top of the page, uder 'THREAD TOOLS' there should be a link to subscribe...

    Sorry re: the 'he' Fatimah_M!
     
    IsRoss(), May 29, 2007 IP
  11. Fatimah_M

    Fatimah_M Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I am subscribed... and no offense taken... just messin with ya....
     
    Fatimah_M, May 29, 2007 IP