garry27 Posted November 30, 2010 Share Posted November 30, 2010 I'm having trouble with a few pages on xcart with the charsets. The problem we're having is that we need to have both utf-8 and iso type charsets as we're getting garbled code on some pages. What I can do is set the utf-8 on all pages and then encode the garbled code into utf-8. Is there a function that does this in PHP or any modules I can use? Thanks Link to comment https://forums.phpfreaks.com/topic/220229-convert-variable-into-utf-8/ Share on other sites More sharing options...
garry27 Posted November 30, 2010 Author Share Posted November 30, 2010 any ideas pls Link to comment https://forums.phpfreaks.com/topic/220229-convert-variable-into-utf-8/#findComment-1141377 Share on other sites More sharing options...
requinix Posted November 30, 2010 Share Posted November 30, 2010 Without knowing more about where the character encodings are defined and when you want to do the recoding, the mbstring and iconv extensions can both convert between text encodings - the former being a bit more reliable (IMO) than the latter. Link to comment https://forums.phpfreaks.com/topic/220229-convert-variable-into-utf-8/#findComment-1141411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.