MahmutKarali / google-api-translate-java

Automatically exported from code.google.com/p/google-api-translate-java
0 stars 0 forks source link

Translate not working in netbeans tomcat #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
expected in hindii

What version of the product are you using? On what operating system?

current version
Please provide any additional information below.

hello i am unsing netbeans tomcat .

<%@page import="com.google.api.translate.Language"%>
<%@page import="com.google.api.translate.Translate"%>
<% try{
   Translate.setHttpReferrer("www.google.com");
   String trans=request.getParameter("key");
    String translatedText = Translate.execute(trans, Language.ENGLISH,
Language.HINDI);
    out.println(translatedText);
    }
catch(Exception e)
        {out.println(e);}

%>

in the above code "out.println(translatedText)" is not giving me the output
it is not giving me error but the output is as  ?????
please give me reply .I HAVE ADDED THE JAR FILE TO LIBRARIES
             thnkx in advance

Original issue reported on code.google.com by aditya.k...@gmail.com on 19 Feb 2010 at 7:44

GoogleCodeExporter commented 8 years ago
Sounds like an encoding issue, probably on Windows. Should be UTF-8.

Original comment by rich.mid...@gmail.com on 13 Dec 2010 at 8:35