Results 1 to 2 of 2
  1. #1
    farshad's Avatar
    farshad is offline Member
    Join Date
    Dec 2011
    Posts
    19
    Rep Power
    0

    Default change encoding in jsf?

    hi
    i want to change encoding in jsf but encoding="UTF-8" is not working and i get ????? in my database instead of the strings i pass to database.
    i want to insert arabic strings
    i wrote filter but didnt work
    neither the xml,meta tag above the page is not working
    and even i tried to set encoding in tomEE in server.xml file
    but non is working please help me SOS!!!!!!

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,994
    Rep Power
    5

    Default Re: change encoding in jsf?

    JSF has little to nothing to do with a database. Likely you need to change encoding somewhere else, like in the database driver or the database itself. Check the manual of your DBMS and its driver.

    Also be sure that the problem is not in the way you are checking the encoding; if you use some sort of command prompt tool to see the data then you are limited by the encoding that the command prompt has set.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Url encoding
    By RaviGupta0709 in forum Web Frameworks
    Replies: 0
    Last Post: 08-23-2011, 08:02 AM
  2. Need help! Encoding from a file.
    By tzulu in forum New To Java
    Replies: 1
    Last Post: 07-20-2011, 08:41 PM
  3. Change XML file encoding
    By karq in forum XML
    Replies: 0
    Last Post: 06-16-2011, 10:29 AM
  4. Need encoding for Korean
    By RamaNalayini in forum Advanced Java
    Replies: 1
    Last Post: 11-25-2010, 02:34 PM
  5. Some help with encoding...
    By nm123 in forum Networking
    Replies: 0
    Last Post: 04-15-2008, 12:22 AM

Posting Permissions

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