Hi Max,

It sounds like you'll need something that will do HTML un-escaping for you.
As it sounds like you've figured out, I think the \u0026quot; string likely
represents the " character. For the benefit of others reading along, in
HTML, the " is represented by " and at some point it looks like the &
is being converted to it's unicode equivalent \u0026 . The list of HTML
escape characters is a bit long, and you can actually represent any unicode
character using a pattern like this:

j

Which is the letter j.

Some searching on the web turned up the following, which might be a viable
option

http://msdn.microsoft.com/en-us/library/7c5fyk1k(VS.80).aspx

I haven't tried it myself though.

Thank you,

Jeff

On Fri, Aug 14, 2009 at 8:46 AM, Max Gulevich <[email protected]>wrote:

>
> Hello all!
> I use Google Translate and got the following problem:
>
> When I try to translate a phrase with (for example) quotes it causes
> the following:
>
> Request:
>
> http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=click%20%22send%22%20button&langpair=|de<http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=click%20%22send%22%20button&langpair=%7Cde>
>
> Response:
> {"responseData": {"translatedText":"Klicken Sie auf \u0026quot;Senden
> \u0026quot;-Button","detectedSourceLanguage":"en"}, "responseDetails":
> null, "responseStatus": 200}
>
> How to convert \u0026quot; into a quote? I believe that there are huge
> amount of characters which could be encoded like a quote (<, >, etc).
> How to display the translated text on HTML page?
>
> I use .Net framework 2.0 and as you maybe understand not an
> experienced developer :)
>
> Any help would be appreciated.
>
> Thanks,
> Max
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to