tastatur / bing-search-java-sdk

Automatically exported from code.google.com/p/bing-search-java-sdk
0 stars 0 forks source link

Problem with ś ć .. (polish letters) #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. My query is "miasto Polska" (in polish)
2. I run the code from the front page of the project 
3. I see that polish letters are displayedproperly, e.g., 
the title of 
http://www.weatheronline.pl/Polska/Sniezka/wiatr.htm - "prognoza pogody wiatr - 
Polska� - Śnieżka - WeatherOnline"

What is the expected output? What do you see instead?
"prognoza pogody wiatr - Polskaî€? - Śnieżka - WeatherOnline" 
(polish letters ś and ż)

What version of the product are you using? On what operating system?
Windows7, Java 1.6.0.21 (fixed), bing-search-api-0.1-SNAPSHOT-07-06-2010

Please provide any additional information below.

Original issue reported on code.google.com by wbarczyn...@gmail.com on 9 Sep 2010 at 10:03

GoogleCodeExporter commented 9 years ago
Thanks for reporting it.

Original comment by nabeelmukhtar on 14 Oct 2010 at 9:10

GoogleCodeExporter commented 9 years ago
I also had problems with any UTF-8 characters. The XML implementation had some 
schema problems, but if you're using JSON just change line 130 in 
BingSearchJsonClientImpl.java to read:

Object response = parser.parse(new InputStreamReader(jsonContent, "UTF-8"));

Build again and you should now get full unicode support.

Original comment by mr.olafs...@gmail.com on 30 Jan 2011 at 9:20

GoogleCodeExporter commented 9 years ago
Where is the BingSearchJsonClientImpl class?  Which package?

Thanks Mr Olafs

Original comment by cherrymo...@gmail.com on 31 Jan 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Here: 
http://www.google.com/codesearch/p?hl=en#_aXFSM_RE6c/trunk/bing-search-java-sdk/
core/src/main/java/com/google/code/bing/search/client/impl/BingSearchJsonClientI
mpl.java&q=BingSearchJsonClientImpl%20package:http://bing-search-java-sdk%5C.goo
glecode%5C.com&sa=N&cd=1&ct=rc

Original comment by mr.olafs...@gmail.com on 11 Feb 2011 at 1:02

GoogleCodeExporter commented 9 years ago
I have changed the build 2.0.176 to use gson for json parsing and updated the 
BingSearchJsonClientImpl class with UTF-8. Let me know if that solves your 
problem.
Except gson, all other dependencies have been removed.

Original comment by nabeelmukhtar on 11 Feb 2011 at 1:07

GoogleCodeExporter commented 9 years ago
please help a newb
im running ImageSample.java with no success.
i can't get any results. i always get:
"The -appid and -query options are required. All others are optional.
 -appid <appid>   You Application ID.
 -help              Print this message.
 -query <query>     Search Query."

even after i set appid and query i still get this message, but with the details 
i entered.

help please thanks

Original comment by dor...@gmail.com on 24 Mar 2011 at 7:21