Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Character encoding issue after upgrading to 10.11
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Character encoding issue after upgrading to 10.11

 Post Reply Post Reply Page  <12
Author
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 6:43pm
Well, you can't use the Latin1 collation to store persian letters.

Is your old db using this collation as well?  Then I'm surprised it ever worked.

Note: What you have shown is the collation of the database.  However, it is the collation of the actual field in the table that counts.  That is usually the same as the db collation, but it is possible to specify something else when the table is created.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 9:36pm
I also suspect the database collation.

When new fields are added to a table the table is rebuilt, when this is done to the tblThread I suspect that when the table is rebuilt to add the new fields that the collation of the database causes the issue.
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 9:51pm
Thanks guys. Yes, I agree the collation must be the issue... but according to a blog post by Microsoft, SQL_Latin1_General_CP1_CI_AS is the standard collation and supports many non-latin characters. At this point, and for future reference I have 2 questions:

1) In order to have UTF-8 as the collation of the db, which collation should be specified? I don't see 'UTF-8' as an option in the drop down within the DB properties
2) Should I leave it alone for now, since it's working -- or should I still make the correction on the collation?

Thanks!
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 10:21pm
SQL server is not designed to use utf8. If you want to store unicode, the field must be defined as nvarchar. If the field is varchar, it depends on the code page of the collation which characters you can store. cp1256 for Persian, I think
Back to Top
rune View Drop Down
Groupie
Groupie


Joined: 09 December 2010
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rune Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2012 at 10:25pm
If it is working, for god's sake leave it. Changing collation is hell.
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2012 at 7:14am
Originally posted by rune rune wrote:

If it is working, for god's sake leave it. Changing collation is hell.

LOL. Copy that. 
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.