Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All,

I have an asp.net 3.5 page that uses twitter api to retrieve tweets from Twitter as following:

"https://api.twitter.com/1.1/statuses/user_timeline.json?count=10&screen_name=BillGates"

it's working and retrieve the latest 10 tweets but there is a problem:

the tweets text come as following:

"Wealth isn\u2019t the only measure of human happiness. Here are a few others"

it should be:

"Wealth isn't the only measure of human happiness. Here are a few others"

i.e. the " ' " comes as " \u2019 "

and all the Arabic characters come in this format

how can I show the tweets text in its correct format?

thanks in advance
Posted

 
Share this answer
 
You have to use the Regular Expressions to filter out that special characters.Try it.Good Luck ! :)

C# Regex.Match

Constructs for Defining Regular Expressions
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900