BuzzerBeater Forums

BBAPI Support > I need help with XML encoding :(

I need help with XML encoding :(

Set priority
Show messages by
This Post:
00
83862.3 in reply to 83862.2
Date: 4/1/2009 3:55:01 PM
Overall Posts Rated:
00
pfff why do you don't answer that in the other threads that don't have a really puntual answer? i.e: "handle the cookies and login stuff in java"

I already take a look on google and i visited a lot of pages, look at my code.
And respect me, you as GM should made that.
---

I miss this: the temporaly solution that i have is modify the XML part:

<?xml version='1.0' encoding='utf-8'?>

for:

<?xml version = '1.0' encoding ='iso-8859-1'?>


but: "Česká Rep" print ?eská Rep, Azərbaycan print: Az?rbaycan (...)

PD: sorry for my english.

Last edited by x_therion_x at 4/1/2009 4:00:38 PM

This Post:
00
83862.4 in reply to 83862.3
Date: 4/1/2009 4:03:45 PM
Overall Posts Rated:
3737
I'm sorry, you're right, that was a bit rude.

But general beginning programming problems are probably well outside the scope of this forum, especially for topics as general (and complicated) as XML parsing and the subtleties of encodings.

This Post:
00
83862.5 in reply to 83862.4
Date: 4/1/2009 4:08:56 PM
Overall Posts Rated:
00
Allright i got it , thanks, and excuse me for distort the thread.
Then if you wish close this topic and if anybody know what i'm making wrong please PM me, I'll appreciate a lot.

PD: Sorry for my english

Last edited by x_therion_x at 4/1/2009 4:09:12 PM

This Post:
00
83862.6 in reply to 83862.5
Date: 4/4/2009 9:09:59 PM
Overall Posts Rated:
2121
Where is the error happening?
I am not familiar with the code you are using but the error looks like something is being returned that probably breaks any encapsulation you have.

For example adding slashes by doing substring replacements to replace ' and " with \' and \" might help.

I can't really see anything about country 78 (Iceland) that is particularly different from the countries previous to it on the list.


You will have to use utf-8 encoding if you want to see all of the characters that make up the country names on BuzzerBeater (same goes for player and team names)

Goodluck

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.