Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing arabic parameters

 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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 ]
 
Edgard Taok
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
seby mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Fouad Fares
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic