All Questions
31 questions
1
vote
1
answer
671
views
Special LATIN characters as UTF-8 escape sequences in Java constants
I need to check Strings in Java that they only contain allowed characters. I need to do it for several different languages. Each of the languages contains a set of special characters that are added to ...
1
vote
0
answers
198
views
How can I make a unicode title in LibGDX game?
I have a game with Vietnamese title. To display the title I did like this:
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
//config width, height, etc.
config.title = "...
1
vote
0
answers
78
views
Using UTF-8 in Jtwig with translation property-files
I have 4 locales in my resources folder which I'm loading exactly as shown in this example: https://github.com/jtwig/jtwig-examples/blob/master/gradle-jtwig-translate-extension-properties/src/main/...
0
votes
1
answer
435
views
Read non english UTF-8 content from HTTP request
I have below code.
Content is coming in request which is non english and UTF-8 encoded. How to read it ? Currently i am doing this but looks like it is not correct.
private String readContent(...
1
vote
1
answer
477
views
How to read text not keys from property files with ResourceBundle
I am facing a problem. The keys and values are fine to read with ResourceBundle from properties or text files but I have some i18n web page contents that are stored in properties/text file.
I want ...
0
votes
2
answers
2k
views
How to read Arabic or Persian (key and values) from java file with ResourceBundle
I am trying to read Arabic and Persian keys & values from java file instead of properties file with ResourceBundle but it displays unknown characters.
What I did is that I Coded 3 files as:
1. ...
1
vote
1
answer
2k
views
Eclipe - handling accents in java file
Comments in java file are written in french. However the code is getting distorted. What setting in eclipse can i use so that code and comment is rendered properly.
// R�cup�ration des params d'...
6
votes
3
answers
3k
views
Internationalization using resource bundle properties in JSP, non-Latin text becomes Mojibake
I have the following index.jsp:
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<fmt:setLocale ...
0
votes
1
answer
4k
views
Spring UTF-8 message resource from external jar issue
I have a problem with UTF-8 message sources in Spring MVC application. I've tried two implementations of AbstractMessageSource: ResourceBundleMessageSource and ReloadableResourceBundleMessageSource. I ...
3
votes
1
answer
2k
views
Struts2: UTF .properties
Is there a way to load a UTF-8 encoded .properties file in Struts2?
I know that its posible to load a UTF-8 file in a ResourceBundle via implementing your Control that loads a UTF8 inputstream but ...
0
votes
1
answer
2k
views
Spring Message japanese characters from a resource bundle display as "?"
I'm using Spring MVC / Message to translate a java properties file in my application. All language are rendering correctly (except Japanese and Chinese.. They both appear as '?' question marks) The ...
0
votes
1
answer
1k
views
Eclipse is converting from \uXXXX to UTF-8 Characters
I am using eclipse for a project. My propertied file is set to use ISO-8859-1, but whenever I enter a \uXXXX string it converts it to the UTF-8 character.
Are there any preferences that must be set ...
1
vote
2
answers
2k
views
translating bytes from korean to utf-8, what am I not getting here?
There is obviously something incomplete about my understanding here. If I run the code below, I expect to see:
translateTest:: start
start_korean: (6) c0 af c8 f1 c8 c6
expected_utf8: (6) c7 20 ...
0
votes
3
answers
9k
views
Chinese Strings Handling in Java? [duplicate]
In my assigned project, the original author has written a function:
public String asString() throws DataException
{
if (getData() == null) return null;
CharBuffer charBuf = null;
...
1
vote
1
answer
16k
views
Java: Write national characters to PDF using PDFBox [duplicate]
Possible Duplicate:
Using PDFBox to write UTF-8 encoded strings to a PDF
I need to create PDF with Czech national characters, and I'm trying to do it with PDFBox library.
I have copied following ...