• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

-Dfile.encoding=UTF-8 does not work in Weblogic 10

 
Greenhorn
Posts: 16
Eclipse IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mates,

We were using Weblogic 8.1 (JDK1.4) and had a webservice deployed. Our client wanted the data sent in UTF-8 format, so we set a up a JVM parameter -Dfile.encoding=UTF-8 in the server startup script. We tried the same thing when we upgraded to Weblogic 10 (JDK 1.5), but the encoding does not work. Is there a new parameter that should be set. Could you please help me out in this?

Thanks for your help in advance.

Thanks & Regards,
Ravi
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe WebLogic accepts utf8, not utf-8. Dash is not allowed. I do not have the resource I read it in, but if anyone has the same problem, you can give it a shot.
 
Ranch Hand
Posts: 152
VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAVA_OPTIONS="$JAVA_OPTIONS -Dfile.encoding=utf8"
should go in your setDomainEnv.sh file because that is sourced by all other lifecycle scripts.
When using NodeManager, make sure it is configured to use scripts.
 
reply
    Bookmark Topic Watch Topic
  • New Topic