Thread
:
[Announce] Effing - Facebook Status Updater
View Single Post
rmerren
2010-11-05 , 18:57
Posts: 282 | Thanked: 337 times | Joined on Dec 2009 @ Austin, TX, USA
#
26
I just posted an update...should show up in the repo soon. I fixed the problem with international characters (accented, umlauted, tildefied, etc.) disappearing.
For those that are actually interested in the technical parts (and in case someone searches for this very problem) here are the details:
the facebook graph api allows you to submit status updates (or other feed info) as post data in an HTML request. I was submitting the raw request string, which works great for gringo-speak. But when people whose languages were not simplified by the rough journey across the atlantic ocean tried to use characters with accent marks, these marks would disappear.
The solution was to "percent encode" the string before placing it in the post data. This was done in Qt with the following:
Code:
QString encodedStatus(QUrl::toPercentEncoding(status,"",""));
Where
status
is the plaintext and the resulting
encodedStatus
is the encoded value to include in the post data.
Quote & Reply
|
The Following 2 Users Say Thank You to rmerren For This Useful Post:
BLC
,
uvatbc
rmerren
View Public Profile
Send a private message to rmerren
Find all posts by rmerren