Skip navigation
Currently Being Moderated

multi language characters

Oct 25, 2013 3:04 PM

I have an applicaiton to support English, French and Spanish.

There are some characters with accent on the top for French and Spanish shows funny characters on the web pages.

I see some web site can display those characters correctly.

I would like to know are there any configuarion to do to display those characters correctly.


Your help and information is great appreciated,





  • Currently Being Moderated
    Oct 28, 2013 2:25 AM   in reply to iccsi

    You need to ensure your content is served up as UTF-8.  On your pages stick this in the page header:

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />


    Also in your .cfm files that handle foreign characters, you might also require this (depending on how you're doing it, e.g. you don't specify if the content is written directly into the HTML source, if you're hardcoding it in ColdFusion variables, or getting it from the DB).

    <cfprocessingdirective pageencoding="utf-8" />


    And you should make sure that the files are saved as UTF-8, not ASCII

    Mark as:
  • Currently Being Moderated
    Oct 28, 2013 6:39 AM   in reply to iccsi

    If you've got hardcoded UTF-8 encoded text in your cfm or cfc files, then you'll need the cfprocessingdirective in each of those that handles that data.


    If the text is coming from your DB, it shouldn't matter.


    What's your text editor?  It should have an option for what type of file encoding to use.

    Mark as:
  • Currently Being Moderated
    Oct 28, 2013 7:35 AM   in reply to iccsi

    This link might be helpful for explaining how to set file encoding in Dreamweaver: ml#set_default_document_type_and_encoding


    If you had some CFML like:


    <cfset name = "双喜">


    You'd want that file to have the cfprocessingdirective at the top of the file.  If that file was itself perhaps cfincluded from another file, both files would need the cfprocessingdirective.


    If however it was coming direct from the DB, it wouldn't matter.  However if you were outputting it into some Javascript or HTML, that file would need to be rendered using UTF-8 encoding.  Which might also need to be done at the webserver.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points