32 users online (1 members and 31 guests)  


  Results 1 to 4 of 4

Related

  1. allow french characters using javascript    Forum: Javascript Forum
    Replies: 0
  2. alert if not using IE    Forum: HTML Forum
    Replies: 1
  3. farewell alert    Forum: Javascript Forum
    Replies: 2
  4. javascript alert box    Forum: Javascript Forum
    Replies: 7
  1. #1
    Ariel's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2002
    Posts
    5

    Question French accents not displaying correctly in JavaScript Alert message

    Hello there!

    How do you display French accents in a JavaScript Alert function called from an ASP page?.

    alert('Vous avez aimé le film?'); displays a little character box before the 'e'.

    If I replace the 'e' that has an accent with the HTML code to produce "é" it displays the text of the HTML code without being translated to a lowercase 'e' with an accent.


    I must be missing an escape character or something else is wrong with my syntax.
    Anyone have any ideas?

    Thanks,
    Ariel
    Last edited by Ariel; 04-25-2003 at 01:58 PM.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    I pasted your code exactly into a test page and it worked fine for me.

    What browser are you using?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32
    Ditto for me. When I pasted the following:
    </head><SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">

    alert("Vous avez aimé le film?")
    </script>

    The display was fine. This with IE5 and IE6.

  4. #4
    uddinn's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2006
    Posts
    1

    Re: French accents not displaying correctly in JavaScript Alert message

    Could you tell me if I use javascript file name as script source it will also resolve the French accent in a websphere5.1 environment. Following code works fine in IE6.0 and Netscape7.0, but having problem in IE 5.5 and Netscape 4.61.
    <script language="JavaScript" type="text/javascript" src="scripts/function.js" charset="iso-8859-1"></script>
    Any comment !
    Last edited by uddinn; 08-22-2006 at 01:37 PM.