hello,
I prepare an application uses the result of the command prompt (Runtime.getRuntime (). exec (cmd)) for a command already entered, and displays it in a Textarea, but I notice that if I use a modal box the problem persists, my problem is that this application is in frensh,if any one can help me to display "é" and "è" lettres because they appear as a small cube (whatever in the text area or the modal box) if any one know how I can solve the problem because I'm a beginner in java and thank you for any help.
kalcio 0 Newbie Poster
Recommended Answers
Jump to PostFirst, you could check that the letters are being transferred correctly from your Runtime exec, and if so, how they have been encoded. Try printing the string with its UniCode numerical values, eg
String s = (the string you get from exec) for (int i=0; i<s.length();i++) System.out.println(s.charAt(i) …
Jump to PostIt's your thread, so you can safely ignore my post and just display a load of code that doesn't even compile. Good luck.
Jump to PostWhat do yo mean "you tested my code?" That code was never going to fix anything. It was a diagnostic. You needed to run it and share the results.
Let me explain:
Internally Java uses 16 bit UniCode to hold chars, so accented chars are no problem. But you have …
Jump to PostYou are just repeating yourself. I tried to help diagnose this problem but you chose to ignore that. I am wasting no more time here.
All 13 Replies
DavidKroukamp 105 Master Poster Team Colleague Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
kalcio 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
kalcio 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
kalcio 0 Newbie Poster
kalcio 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
NormR1 563 Posting Sage Team Colleague
kalcio 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
kalcio 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.