Language API, RESTful, how to encode German Umlaut in URL

133 views
Skip to first unread message

Vichet

unread,
Sep 20, 2009, 5:53:31 PM9/20/09
to Google AJAX APIs
Hi,

I used the following URL to translate the German word "Tag" into
English successfully.

http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Tag&langpair=de|en

But when I want to translate the German word "Bär" or other words
which have umlaut characters like ä, or ö, or ü, it failed.

Can anyone suggest how to escepe these German umlaut characters in
URL.

Thanks,
Vichet

Vichet

unread,
Sep 22, 2009, 5:27:10 PM9/22/09
to Google AJAX APIs
I found the following encoding worked well.

ä %C3%A4
ö %C3%B6
ü %C3%BC
Ä %C3%84
Ö %C3%96
Ü %C3%9C
ß %C3%9F


On Sep 20, 11:53 pm, Vichet <mr.vic...@gmail.com> wrote:
> Hi,
>
> I used the following URL to translate the German word "Tag" into
> English successfully.
>
> http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=T...en
Reply all
Reply to author
Forward
0 new messages