Also:
http://weblogs.sqlteam.com/mladenp/archive/2008/10/21/Different-ways-how-to-escape-an-XML-string-in-C.aspx
Zac Bowling


On Wed, Jan 27, 2010 at 9:28 PM, Zac Bowling <zbowl...@gmail.com> wrote:

> Entity codes.
>
> Just decode them...
>
> using System.Web;
> ...
> string decoded_stuff = HttpUtility.HtmlDecode(encoded_stuff);
>
>
> There is a way to do this with System.Xml but whatever.
>
> Zac Bowling
>
>
>
> On Wed, Jan 27, 2010 at 9:10 PM, Rejeev Thomas <rejeevtho...@gmail.com>wrote:
>
>> Please help friends!
>>
>>
>> Thanks Ryan!
>>>
>>> I am taking an XML response from *
>>> http://twitter.com/statuses/friends_timeline.xml* and it happens when I
>>> post a Tweet in my home language and trying to read it ,follwoing are some
>>> of the Text.
>>>
>>> *<?xml version="1.0" encoding="UTF-8"?>
>>> <statuses type="array">
>>> <status>
>>>   <created_at>Wed Jan 27 04:19:36 +0000 2010</created_at>
>>>   <id>8265961626</id>
>>>
>>> <text>&#3335;&#3368;&#3405;&#3364;&#3405;&#3375;&#3349;&#3405;&#3349;&#3390;&#3376;&#3393;&#3359;&#3398;
>>> &#3334;&#3382;&#3353;&#3405;&#3349;
>>> &#3370;&#3376;&#3391;&#3351;&#3363;&#3391;&#3349;&#3405;&#3349;&#3363;&#3374;&#3398;&#3368;&#3405;&#3368;&#3405;
>>> &#3347;&#3384;&#3392;&#3384;&#3405;
>>> &#3372;&#3391;&#3383;&#3370;&#3405;&#3370;&#3405;:
>>> &#3374;&#3398;&#3378;&#3405;&#8205;&#3372;&#3363;&#3405;&#8205;:
>>> &#3347;&#3384;&#3405;&#8204;&#3359;&#3405;&#3376;&#3399;&#3378;&#3391;&#3375;&#3375;&#3391;&#3378;&#3405;&#8205;
>>> &#3335;&#3368;&#3405;&#3364;&#3405;&#3375;&#3349;&#3405;&#3349;&#3390;&#3376;&#3405;&#8205;&#3349;&#3405;&#3349;&#3398;&#3364;&#3391;&#3376;&#3398;
>>> &#3368;&#3359;&#3349;&#3405;&#3349;&#3393;&#3368;&#3405;&#3368;
>>> &#3334;...</text>*
>>>
>>> The above are the junk characters responded , also made convert to UTF8
>>> but its not converting.
>>>
>>> please help.
>>>
>>> Thanks,
>>> Rejeev.
>>>
>>>
>>>
>>>
>>> On Mon, Jan 25, 2010 at 9:14 PM, ryan alford <ryanalford...@gmail.com>wrote:
>>>
>>>> Can you paste an example of the bad characters as .Net shows them, and
>>>> what they should really be?
>>>>
>>>> Ryan
>>>>
>>>>
>>>> On Mon, Jan 25, 2010 at 5:36 AM, Rejeev <rejeevtho...@gmail.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> My Twitter response XML contains some unicode characters , I am not
>>>>> able to read that in C#.net. Its showing junk characters. Please help
>>>>> me to read that in proper text.
>>>>>
>>>>> Thanks,
>>>>> Rejeev
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to