Welcome Guest, Not a member yet? Register   Sign In
CharacterSet mismatch
#7

(09-14-2017, 10:57 AM)rkb Wrote:
(09-14-2017, 08:59 AM)InsiteFX Wrote: windows-1252' is not a database character set it is a Windows browser and html character set.

Semantics. Is all I know is that with PHP 5.x and the mssql driverĀ I used to be able to specify 'windows-1252' as the database character set in the configuration for the database with CodeIgniter. Now (with PHP 7.x and sqlsrv driver) the database configuration for CodeIgniter no longer accepts (throws a database exception) 'windows-1252' as an option. Specifying 'windows-1252' as the database charset configuration worked before. For CodeIgniter with a sqlsrv driver this isn't a valid option.

If we want to migrate to PHP 7.x with CodeIgniter I am only asking what the database configuration charset should be to mimic the "old" behavior (with PHP 5.x and mssql driver)?

Pretty sure I wrote a reply yesterday ... maybe I forgot to actually hit the Post button.

Read this: https://blogs.msdn.microsoft.com/brian_s...racterset/
SQLSRV_ENC_CHAR is also the default in CI if you don't specify a charset in the config.
Reply


Messages In This Thread
CharacterSet mismatch - by rkb - 09-13-2017, 02:00 PM
RE: CharacterSet mismatch - by InsiteFX - 09-14-2017, 03:43 AM
RE: CharacterSet mismatch - by rkb - 09-14-2017, 06:03 AM
RE: CharacterSet mismatch - by InsiteFX - 09-14-2017, 08:59 AM
RE: CharacterSet mismatch - by rkb - 09-14-2017, 10:57 AM
RE: CharacterSet mismatch - by Narf - 09-15-2017, 01:38 AM
RE: CharacterSet mismatch - by rkb - 09-15-2017, 07:06 AM
RE: CharacterSet mismatch - by Narf - 09-15-2017, 01:36 AM
RE: CharacterSet mismatch - by Narf - 09-15-2017, 07:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB