Cannot store chinese characters in MSSQL |
[eluser]Loupax[/eluser]
Hello, I'm working on a CI 2 application, and I'm having trouble storing multibyte characters to my MSSQL database. The reason I believe this has to do with CodeIgniter and not SQL is because if I try to store a chinese string directly using SQL Server Management Studio, the string is stored just fine, but when I enter the same data through a form, all I get in the table are question marks where the characters should be. These are my database settings: Code: $db['local']['dbdriver'] = 'sqlsrv'; And this is the structure of the table I'm currently testing on: Code: CREATE TABLE [dbo].[languages]( And this is my charset encoding setting in my config.php Code: $config['charset'] = 'utf-8'; Finally, all the strings are being validated by the form validation library with required|trim rules. There is also a question made in Stack Overflow, so if you want the reputation you can answer there ![]() Thanks for your time! |
Messages In This Thread |
Cannot store chinese characters in MSSQL - by El Forum - 02-08-2012, 02:33 AM
Cannot store chinese characters in MSSQL - by El Forum - 02-08-2012, 02:43 AM
Cannot store chinese characters in MSSQL - by El Forum - 02-08-2012, 02:53 AM
Cannot store chinese characters in MSSQL - by El Forum - 02-08-2012, 04:19 AM
Cannot store chinese characters in MSSQL - by El Forum - 02-08-2012, 07:39 AM
|