www.webdeveloper.com
Results 1 to 3 of 3

Thread: Encoding problem

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    11

    Encoding problem

    Hi all,
    having a very strange problem here.
    I'm using "include file" option in jsp for some html page.
    it looks like this:
    <body>
    <%@include file="Header.html"%>
    </body>

    The problem is that when I run this Header.html file it works good, but when I run the code above
    I see gebberish instead of the text inside the page. It only happens if I use text of my local language, English work fine without any problem.

    Thanks a lot..

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,119
    I would try the following
    set the encoding before the execution of your code
    e.g
    <% request.setCharacterEncoding("utf-xx"); %>//replace xx that represents your language
    <%@include file="Header.html"%>
    //and then may be you will have reset the encoding here to your default
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Feb 2012
    Posts
    11
    Thanks buddy, it works good!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles