Siann Beck Posted April 15, 2010 Share Posted April 15, 2010 I have to confess I've always been a bit baffled by character encodings, so I'm only assuming it's a database issue, but I have correct data coming from one field and not another, so that's the basis of my assumption. Table definition: [pre]ListingID int(11) DEFAULT NULL, Language char(2) COLLATE utf8_unicode_ci DEFAULT NULL, Title varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, Description text COLLATE utf8_unicode_ci, Search text COLLATE utf8_unicode_ci, UNIQUE KEY ListingID_2 (ListingID,Language), KEY ListingID (ListingID), FULLTEXT KEY Search (Search) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci[/pre] Server version: 5.1.36 When someone enters Japanese characters, the title displays properly, but the description does not. Example: http://www.metaverseexchange.com/listing.php?id=8164&lc=ja Link to comment https://forums.phpfreaks.com/topic/198663-japanese-characters/ Share on other sites More sharing options...
Ken2k7 Posted April 15, 2010 Share Posted April 15, 2010 Looks like when you print them, the & becomes & which messes up the special character display. Try replacing the & with &. Link to comment https://forums.phpfreaks.com/topic/198663-japanese-characters/#findComment-1042568 Share on other sites More sharing options...
Siann Beck Posted April 15, 2010 Author Share Posted April 15, 2010 ::sigh:: I'm an idiot. The BBCode parser was converting them. *Siann Beck smacks herself in the forehead. Link to comment https://forums.phpfreaks.com/topic/198663-japanese-characters/#findComment-1042577 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.