Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » IBM/XML Editor Contri Encoding Problem
IBM/XML Editor Contri Encoding Problem [message #47839] Tue, 05 October 2004 07:06 Go to next message
Eclipse UserFriend
Originally posted by: rdenis.ad.skynet.be

Hi

I'm not able to use the UTF-8 encoding with the IBM Contri's JSP Editor.
Special characters like french characters 'éàîôù' are becoming wrong
after closing/reopening (hope they are showing right in your news client :))

The encoding specified in 'Window > Preferences > Web & XML > JSP Files'
for creating files is ISO 10646/Unicode(UTF-8).

I specified <?xml version="1.0" encoding="UTF-8"?> for each of my files too.

I tried both opening/saving my old files and creating new files, then
copy and paste, but nothing to do. It is wrong in Eclipse and my web
browser (FireFox RC), but shows OK with Notepad (so I suppose that the
JSP editor saves it with iso-8859-1 encoding).

An example:

--
New File 'test.jspx'
with '*.jspx' mapped to <JSP Source Page Editor>
--
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">

<jsp:directive.page
contentType="text/html;charset=utf-8"/>

<html>
<body>
<h1>La folie, c'est se comporter de la même manière et
s'attendre à un résultat différent</h1>
</body>
</html>
</jsp:root>
-- Save/Close/Reopen --
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">

<jsp:directive.page
contentType="text/html;charset=utf-8"/>

<html>
<body>
<h1>La folie, c'est se comporter de la même manière et
s'attendre à un résultat différent</h1>
</body>
</html>
</jsp:root>
--

No problem to do this with a new *.xml file.

Am I doing something wrong?
Thanks for ur help,
Renaud
Re: IBM/XML Editor Contri Encoding Problem [message #47991 is a reply to message #47839] Wed, 06 October 2004 22:15 Go to previous message
Eclipse UserFriend
On Tue, 05 Oct 2004 13:06:06 +0200, Renaud Denis <rdenis.ad@skynet.be>
wrote:

>
> Am I doing something wrong?

I suspect one problem is just that jspx is not listed in the contentType
file extensions of
JSP's. (you can edit the plugin.xml file of ....model.jsp if you'd like to
try, adding jspx to the list of
filetypes, *without* any spaces in the list if file extensions).

I'm a little surprised its not recognized as 'xml', though (and therefore
encoding picked up from xml declaration).
But, maybe that's another bug?
Previous Topic:Milestone Plan
Next Topic:Can I install both lomboz and IBM in the same eclipse
Goto Forum:
  


Current Time: Fri May 23 10:11:24 EDT 2025

Powered by FUDForum. Page generated in 0.10912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top