Fuckin' perl...
$caption = HTML::Entities::decode_entities ($caption);
+ # If this is still a Latin1 string, upgrade it to wide chars.
+ if (! utf8::is_utf8($caption)) {
+ utf8::encode ($caption);
+ utf8::decode($caption);
+ }
Fuckin' perl...
$caption = HTML::Entities::decode_entities ($caption);
+ # If this is still a Latin1 string, upgrade it to wide chars.
+ if (! utf8::is_utf8($caption)) {
+ utf8::encode ($caption);
+ utf8::decode($caption);
+ }
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.