Home: Perl Programming Help: Intermediate:
HTML special characters with Net::Twitter::Lite



s1678687
New User

Aug 7, 2013, 2:12 AM


Views: 2631
HTML special characters with Net::Twitter::Lite

I try to send characters like , , , and so on to twitter. If one uses their interface one can write ü instead of . I believe that this worked with the earlier twitter API, but somehow I see now ü rather than "" in the post. Is there a parameter or something that I have to set? I am using:

use Net::Twitter::Lite::WithAPIv1_1;


Zhris
Enthusiast

Aug 7, 2013, 2:01 PM


Views: 2620
Re: [s1678687] HTML special characters with Net::Twitter::Lite

Hi

Have you tried sending the literal character since it sounds like twitter or the module handles the escaping.

Chris


(This post was edited by Zhris on Aug 7, 2013, 2:02 PM)


s1678687
New User

Aug 7, 2013, 11:37 PM


Views: 2609
Re: [Zhris] HTML special characters with Net::Twitter::Lite

Thanks! I rewrote the whole code and use unicode instead of HTML now (also switched the webserver to unicode). The Encode module lets me encode the characters as unicode and now they come out nicely in twitter.

Thanks again!