stubarny Posted March 16, 2007 Share Posted March 16, 2007 Hi I'm converting from utf-8 to base64 in order to use variables in email subject fields. The utf-8 code i have is in entity form (e.g. "坛" ) but of course if i convert this to base64 the subject will display "坛" rather than the chinese character it represents. So how can the "坛" be converted into character form within the php code to allow the base64 encoding to take place? Thanks for your help! Stu Quote Link to comment https://forums.phpfreaks.com/topic/43045-solved-converting-from-utf-8-entities-to-utf-8-characters/ Share on other sites More sharing options...
effigy Posted March 16, 2007 Share Posted March 16, 2007 Try this. Quote Link to comment https://forums.phpfreaks.com/topic/43045-solved-converting-from-utf-8-entities-to-utf-8-characters/#findComment-209110 Share on other sites More sharing options...
stubarny Posted March 16, 2007 Author Share Posted March 16, 2007 you are a wonderful man! Quote Link to comment https://forums.phpfreaks.com/topic/43045-solved-converting-from-utf-8-entities-to-utf-8-characters/#findComment-209152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.