0

When I create a new row into my DataBase, I got these weird characters (from a String-type). I can not find how to fix this for 3 days. How do I change the encoding on Eclipse?

I did all of these configurations:


(source: siteduzero.com)


(source: siteduzero.com)


(source: siteduzero.com)

And

Window > Preferences > General > Workspace > 'Other UTF-8'

But, I still get this on my webpage which I had extracted from my database, knowing that the encoding there is perfect (JSP page):

http://img15.hostingpics.net/pics/136324Capturer4.jpg

and I wrote this in the top of my JSP page:

<%@ page pageEncoding="UTF-8"%>

and this into head tags of my page

<meta charset="utf-8" />
Glorfindel
  • 21,988
  • 13
  • 81
  • 109

1 Answers1

0

I think that all this configuration is for new files created by Eclipse. If you have created your page before changing the configuration or if it was generated elsewhere, you have to change the encoding for the file. For example, right-click on the file in the Package explorer and chose Properties. You will find the configuration property "Text file encoding" for the specific file. enter image description here

Cyrille Ka
  • 15,328
  • 5
  • 38
  • 58
  • OP told that she got data from DB (in other words, data is not hardcoded in JSP). Hint: she told nowhere that she has set DB/JDBC encoding right. – BalusC Aug 19 '13 at 14:54
  • When I create a new row into my DataBase, I got these weird characters (from a String-type). I can't find how to fix this :'( – Lucie Leigh Allen Aug 19 '13 at 15:42