473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Change encoding of Java Vm to ISO-8859-1

Ann
Hi,
Is there any way to Change encoding of Java Vm to ISO-8859-1?

i am using Java vm along with an application called opencms.
I get the following error message..

Error: the encoding of your Java VM is different from
the OpenCms encoding!

Java VM file encoding: UTF-8
OpenCms encoding: ISO-8859-1

To continue the setup process:

* Change the encoding of your Java VM. To do that
you must modify the file.encoding setting. Using
Apache Tomcat, a different encoding can be set in the
environment variable CATALINA_OPTS by the -D parameter
e.g.:
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

* If you want to use an encoding different from
ISO-8859-1, you must also adjust the
defaultContentEncoding setting in
WEB-INF/config/opencms.properties.

Unless you have specific encoding requirements, you
should use the default ISO-8859-1 setting. Please
refer to the Sun documentation for a list of supported
encodings for your OS.
Can some one please help me out?
Thanks,
Ann
Jul 17 '05 #1
2 49269
Ann
Figured it out

Add the following entry in /root/.bash_profile/ or etc/profile

CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

ns****@yahoo.com (Ann) wrote in message news:<cc**************************@posting.google. com>...
Hi,
Is there any way to Change encoding of Java Vm to ISO-8859-1?

i am using Java vm along with an application called opencms.
I get the following error message..

Error: the encoding of your Java VM is different from
the OpenCms encoding!

Java VM file encoding: UTF-8
OpenCms encoding: ISO-8859-1

To continue the setup process:

* Change the encoding of your Java VM. To do that
you must modify the file.encoding setting. Using
Apache Tomcat, a different encoding can be set in the
environment variable CATALINA_OPTS by the -D parameter
e.g.:
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

* If you want to use an encoding different from
ISO-8859-1, you must also adjust the
defaultContentEncoding setting in
WEB-INF/config/opencms.properties.

Unless you have specific encoding requirements, you
should use the default ISO-8859-1 setting. Please
refer to the Sun documentation for a list of supported
encodings for your OS.
Can some one please help me out?
Thanks,
Ann

Jul 17 '05 #2
I just had the same problem. Here's what I did to fix it:

OS: WinXP Pro

1. Right-click on the Tomcat icon in the system tray and select
'Properties'

2. Select the Java VM tab.

3. Add -Dfile.encoding=ISO-8859-1 to the Java Options box on a
separate line after the other stuff.

You may need to restart Tomcat after making this change. This fixed my
problem right away. I hope it helps.

Andrew
ns****@yahoo.com (Ann) wrote in message news:<cc**************************@posting.google. com>...
Hi,
Is there any way to Change encoding of Java Vm to ISO-8859-1?

i am using Java vm along with an application called opencms.
I get the following error message..

Error: the encoding of your Java VM is different from
the OpenCms encoding!

Java VM file encoding: UTF-8
OpenCms encoding: ISO-8859-1

To continue the setup process:

* Change the encoding of your Java VM. To do that
you must modify the file.encoding setting. Using
Apache Tomcat, a different encoding can be set in the
environment variable CATALINA_OPTS by the -D parameter
e.g.:
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

* If you want to use an encoding different from
ISO-8859-1, you must also adjust the
defaultContentEncoding setting in
WEB-INF/config/opencms.properties.

Unless you have specific encoding requirements, you
should use the default ISO-8859-1 setting. Please
refer to the Sun documentation for a list of supported
encodings for your OS.
Can some one please help me out?
Thanks,
Ann

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: lawrence | last post by:
Validator chokes on my pages now because I started sending an character encoding header of UTF-8 but the page is full of non UTF-8 characters. Anyway quick way to convert them? ...
198
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
1
by: ToSam | last post by:
In my C++ program I execute a java.class file via the CreateProcess function. In details: // define a pointer to directory with Main.class file char * pExecute = "java Main"; // create a java...
3
by: Nelson R. | last post by:
Hi, im using a form to get some input from the user. This form is in a HTML file. When I post the form directly to my email, i receive all fields correctly. Example test.html: <FORM...
2
by: BluNuit | last post by:
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. ...
1
by: jjouett | last post by:
I'm trying to setup an ASPX web page such that an existing Java Client can post form data, and I'm running into a problem. The existing Java Client doesn't set any credentials, and when I try to...
2
by: Scirious | last post by:
People, when executing a Java application the procces name given to it usually java.exe or javaw.exe. But how can I make it be called by the name of my application? Thanks, Scirious.
2
by: John | last post by:
I am updating an xml column in SQLServer 2005, but it always gives me an error "XML parsing: line 1, character 38, unable to switch the encoding" my csharp is like the following ...
1
by: SupplierScan | last post by:
I'm still a struggling learner with my website (www.supplierscan.com) as the dropdown menus don't work in IE7. I purchased the website already made and I am just about getting comfortable with HTML...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.