• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic