How to add Chinese support to an existing java application? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
I got an application that coded with java.
the application have a same window that i can add some text and hit the send button.
it is sending the test to a server and then print it there.
when i'm writing an English letter i have no problem.
when i'm writing Chinese letter , i can see it on the windows , but when hitting the send button the letter is changed to ??.
and the string that i'm sending to the server is ??.
any idea how i can add the Chinese support here ?

by adding to the bat file -Dfile.encoding=GB2312 the java application support the Chinese char.

Related

How to get data from another android application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to develope an application which extracts data from another application (the "whatsapp" application) when i am getting an incoming call.
How can I do it?
Maybe relevant guids will help :)
Thanks in advance!
Yogo.
It is generally not possible, unless if the application makes it public, for instance, sharing data via Intent or storing files in a public folder, e.g. in the SDCard.

Can I run java code in html textbox? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I am writing one web page in which I am putting one html input type="textarea" in which user will write their java code and on submit it will return output of that java code. Can I do this using jsp? if not then what are the other ways.
I would think very carefully before allowing people to do that.
At the very least, to read and run the user's input, you will need a JDK to compile it, and a JVM to run it. Since you're talking about over the web, presumably the user's machine will not have those (otherwise they'd just use theirs), so you'd have to use the ones on your server - that is, take the user's text, upload it as a .java file to your server, compile and run it (for an anonymous user on your server!), and send the result back to the browser session.
As you can see, there are a couple of pretty big, bad security problems here. Not recommended !

Java Replacing Data In HTML File At Runtime [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a HTML file that acts like a template. For example:
Dear Name Surname
is contained in a HTML file. At runtime I would like to replace this with Dear Someone Name. How is this possible in Java?
Having looked in Google I couldn't find anything. I know I can do this in XML, but in this scenario I have to use the above approach.
Depending on the degree of complexity of your file a simple String.replace() or String.replaceAll() might do.
If you have more complex files I would recommend templating engines like Velocity or Freemarker.

How can I add an Image to MSWord document using Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I add an Image stored in my local computer to a word file using Java code.
Please let me know any API's that I can use. Or any sample code?
Consider Apache POI ApachePOI
POI is an API for manipulating MS office documents.
Know more here:Duplicate ques
and one more duplicate question

Opening 2 audio-files and playing them simultaneously [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Can I play 2 sound-files simultaneously?
I can handle the loading, changing loudness, opening and closing of one file.
How can I load 2 files in separate frames and start the playing with simultaneously hearing.
Put the opening and the playing into two separate threads, then start them. The two threads can be synchronized so the playback starts synchronously.

Categories

Resources