View Full Version : Twitter integration fails with accented characters
June 2nd, 2013, 02:43 PM
The twitter integration fails with this error message:
"Invalid Unicode value in one or more parameters ..."
If the product name contains accented characters like: Flo´d.
June 2nd, 2013, 04:54 PM
I can not read what your posting it is too small. Is that a dot or two dots.
Your trying to say like twitter does not like umlates?
Maybe just a guess this line in showphoto template for twitter make it this
<li><a class="twitter" target="_blank" href="http://twitter.com/home/?status=Looking at: ". urlencode($title) ."... $fburl"></a></li>
June 3rd, 2013, 07:52 AM
Yes, the umlates makes twitter crash.
I've tried changing the line you say at "showproduct" (not "showphoto") template. And now the error has dissapeared but the "twit" only show "Looking at:".
June 3rd, 2013, 08:08 AM
I do not use twitter so hard for me to test or know its capabilities.
Try using a clean showproduct template and at the top of that template after the top line that has <? on the next empty line write this.
$twittle = urlencode($title);
You can then change $title to $twittle in the twitter line and see what happens.
June 5th, 2013, 01:07 AM
Solved using "utf8_encode" instead "urlencode". I added at the top of "showproduct" template.
$twimanu = utf8_encode($manu);
$twititle = utf8_encode($title);
And changed the line that calls Twitter:
<li><a class="twitter" target="_blank" href="***/?status=Looking at: $twimanu $twititle... $fburl"></a></li>
NOTE: Using *** instead of real URL cause I can't post external URLs yet. :eek:
June 5th, 2013, 08:23 AM
No problem glad that works for you.
June 6th, 2013, 02:44 AM
I have twitter account for which I am uploaded the picture on that. I am not succeeded upload it.
June 6th, 2013, 08:03 AM
If you need support about an issue please follow these instructions to be able to post for support and post in the proper support forum with specific information on your exact issue so we may assist you.
PhotoPost Community - Announcements in Forum : PhotoPost Pro Support Forums (http://www.photopost.com/forum/photopost-pro-support-forums/announcements.html)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.