Call-911 Posted February 16, 2011 Share Posted February 16, 2011 Hey all, I can not get utf-8 working properly. I'm having issues with special characters, such as bullets, e with an accent over it, etc. The data is being stored in my mssql database properly, and I can see everything there fine. It's when I grab it from the database and display it on my php page. The page it set up to utf-8, if I go to Tools>Page Info, it says encoding is utf-8. I have it in my headers, I just can not figure out why it will not display on the page. Any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/227905-utf-8-issues/ Share on other sites More sharing options...
xylex Posted February 16, 2011 Share Posted February 16, 2011 Are you using the legacy mssql library or new SQLSRV one from Microsoft? sqlsrv_connect() takes the characterset as an option - http://msdn.microsoft.com/en-us/library/ff628167(v=SQL.90).aspx Quote Link to comment https://forums.phpfreaks.com/topic/227905-utf-8-issues/#findComment-1175192 Share on other sites More sharing options...
Call-911 Posted February 18, 2011 Author Share Posted February 18, 2011 Ah! That helped!! utf8_encode that was the magic I was missing. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/227905-utf-8-issues/#findComment-1176204 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.