https://bugzilla.wikimedia.org/show_bug.cgi?id=72734

--- Comment #3 from [email protected] ---
I'm using a language (awk) with no native UTF or JSON support so found it needs
to pipe through the unix utility iconv eg.

> echo '\u00E9' | iconv -f java
> é

However &utf8=1 is awesome. That saved me from doing the above external
program. 

The link to ietf.org is helpful.. I tried it with the Wikipedia article named
"300" (includes quotes):

wget -q -O-
"http://en.wikipedia.org/w/api.php?action=parse&page=";'"'"300"'"'"&prop=links&format=json&utf8=1"

produces

{"parse":{"title":"\"300\"","links": etc..

So it escapes not in UTF-16 Java format but plain backslash. That should make
life easier.

GreenC

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to