Hi
I am tring to convert some German specific character tosome other
character from english. I am using enxt code
String menu_text = "some text on german queried from MySQL";
char repGer[] = {32,47,223,228,235,246,252};
char repEng[] = {95,95,115,97,101,111,117};
mmImg = menu_text.toLowerCase();
for (int J = 0;J<repGer.length;J++) {
mmImg = mmImg.replace(repGer[J],repEng[J]);
}
I put this code into JSP page. And it's working under Windows, but not
under Linux. By the way I use thos code to make urls and I need english
characters for that. Under Linux I am getting only question marks instead
of every single german character. I am using Tomcat 4 and both systems.
Versions of JDK and Tomcat are almost the same.
What's more strange is that next code is working quite well under both
systems:
<%
char repGer[] = {32,47,223,228,235,246,252};
char repEng[] = {95,95,115,97,101,111,117};
for (int i = 0; i < repGer.length; i++) {
%>
<tr>
<td><%=repGer[i]%></td><td><%=repEng[i]%></td>
</tr>
<%
}
%>
CAn anybody helps me , pleasee
Ilic Aleksandar
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>