Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - why dont use CodePage = 65001 with utf-8 encoding
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

why dont use CodePage = 65001 with utf-8 encoding

 Post Reply Post Reply
Author
fooladi View Drop Down
Groupie
Groupie


Joined: 21 July 2003
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote fooladi Quote  Post ReplyReply Direct Link To This Post Topic: why dont use CodePage = 65001 with utf-8 encoding
    Posted: 04 August 2011 at 2:31pm
web wiz forum supports utf-8 but when open my access database Persian characters don't show correctly.
solution is using: <% @ Language = VBScript CodePage = 65001%> instead of <% @ Language = VBScript %>.

i don't know witch file must be edited but  I change all files  and it is now OK.

please provide option for us because we use free edition and can not edit source code. or just ignore this kind of editing.Cry

thanks


Edited by fooladi - 04 August 2011 at 3:06pm
Back to Top
fooladi View Drop Down
Groupie
Groupie


Joined: 21 July 2003
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote fooladi Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2011 at 3:24pm

I find this answer in web and hope it be usefull:

"The codepage 65001 does refer to the UTF-8 character set. You would need be make sure that your asp page (and any includes) are saved as UTF-8 if they contain any characters outside of the standard ASCII character set.

By specifying the CODEPAGE attribute in the <%@ block you are indicating that anything written using Response.Write should be encoded to the Codepage specified, in this case 65001 (utf-8). Its worth bearing in mind that this does not affect any static content which is sent verbatim byte for byte to the response. Hence the reason why the file needs be actually saved using the codepage that is specified.

The CharSet property of the response sets the CharSet value of the Content-Type header. This has no impact on how the content my be encoded it merely tells the client what encoding is being received. Again it is important that his value match the actual encoding sent."

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 (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2011 at 6:59am
Instead of changing the code page you need to be changing the LCID in the common.asp file.

Open the common.asp file and at line 63 you will find:-

'Session.LCID = 1033


Change this to:-

Session.LCID = 1065


The 1065 is for Persian (Iran) but other LCID's can be found on the LCID page.
Back to Top
fooladi View Drop Down
Groupie
Groupie


Joined: 21 July 2003
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote fooladi Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2011 at 12:26am
thanks.  I enabled using of this line and correct session LCID on intact forum files on localhost. but this didn't work for me. (win7 x64 with Persian locality).

in my database instead of:
گل پروانه
I see:
گل پروانه

so session CodePage = 65001 is only solution for me.




Edited by fooladi - 08 August 2011 at 1:35am
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 (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2011 at 7:36am
Check that you have set your database to use a collation that ius support by your language.

After any changes to encodings, LCID, and collation you may find you need to re-save data again in your forum so that it is stored correctly. It maybe simpler to install again if your forum is new.
Back to Top
 Post Reply Post Reply

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.