This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

passing arabic parameters

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
I'm developping a web application through Jdeveloper 9i.028.
I'm trying to pass parameters from page to page using get method through a javascript.
The values of these parameters are in arabic language.

Once i try to read these values on the second page using the request.getParameter method i receive a garbage values.

Please Note that i try to display the values before sending it to the second page and the output was correct

Plese advise
Thanks in advance.
[ April 18, 2006: Message edited by: Bear Bibeault ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi try this

<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>

in the header of the receiver page
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hy
thanks for your reply but when i added the line you suggested i've got the following error :
invalid attribute: pageEncoding
and if i ommit that option (pageEncoding="UTF-8") the following error appears :
sun.io.MalformatedInputException

thanks in advance
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this in the html source of your .jsp file
"<META http-equiv="Content-Type" content="text/html; charset=UTF-8">"
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have allready tried it with no success
please note that i'm using j2ee 1.2 and jdevelopper 9.0.24

thanks
 
seby mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this thread
http://www.theserverside.com/discussions/thread.tss?thread_id=28944
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
i've found the following solution:

<% request.setCharacterEnconding("Windows-1256"); %>

thank your for collaboration

[ April 19, 2006: Message edited by: Fouad Fares ]
[ April 19, 2006: Message edited by: Fouad Fares ]
 
Straws are for suckers. Now suck on this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic