Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Apostrophes, quotation marks, etc.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedApostrophes, quotation marks, etc.

 Post Reply Post Reply
Author
rsorrells View Drop Down
Newbie
Newbie
Avatar

Joined: 03 July 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsorrells Quote  Post ReplyReply Direct Link To This Post Topic: Apostrophes, quotation marks, etc.
    Posted: 09 July 2006 at 10:31pm

Hello,

I need help troubleshooting when there's an apostrophe and quote in the text.  I can't get it to break when only a small amount of text... only several thousand characters. 

Before: Make sure you don't photograph the backs of people. 

After:  Make sure you donÃÆ’t photograph the backs of people.

I'm saving to a MSSQL 2000 table, with the varable type of ntext. 
 
I'm also not using a SQL statement... rather a recordset object, so I'm not doing any character substitution.
 
Any troubleshooting suggestions?
 
Thanks,
Bob
 
p.s.    I did determine that the text is being written correctly to the database.   These extra characters are appearing when the data is read back from the database and loaded into RTE. 


Edited by rsorrells - 10 July 2006 at 12:02am
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: 10 July 2006 at 9:26am
Try setting a character set that supports the language you are using in the head of your web page.
Back to Top
rsorrells View Drop Down
Newbie
Newbie
Avatar

Joined: 03 July 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsorrells Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2006 at 11:44am
I'm using the default character set, which for default.asp file in the RTE folder uses
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
I've isolated it further.
 
before: They're made
after:    They’re made
 
I did a loop through the string, and this ’ thing, whatever it is, is treated in ASP as a single character, with a length of 1.
 
As a work-around, I could actually do a substitution of ' for ’, but I can't figure out the string equivalent of ’.    Its treated as a single character.
 
I tried sMyString = Replace(sMyString, "’", " ")  and that doesn't work.
Thanks,
Bob
 
 
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: 10 July 2006 at 1:04pm
This seems very odd and does seem like some sort of encoding problem on the server.

Check your database is using the same encoding as your web pages.
Back to Top
bchavez View Drop Down
Newbie
Newbie


Joined: 14 July 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bchavez Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 5:34pm
Hi!!

I'm trying the RTE and it's really cool but I have the same problem, my site is in spanish, with no other editors I tryed i had this problem, in spanish there are á, é, í, ó, ú, Á, É, Í, Ó, Ú, ñ, Ñ, but the editor don't let me use it because it put the extrange symbols... I don't know why instead of put for á &aacute; put those extrange symbols... I use a simple Access database...

How can I solve this problem, do you know, I really like RTE but this problem is big.... 

regards


Edited by bchavez - 14 July 2006 at 5:35pm
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: 14 July 2006 at 8:55pm
What you mention is something completely different and has been covered a number of times, here just one post that covers the issue you have with page encoding:-

http://forums.webwiz.net/forum_posts.asp?TID=19881
Back to Top
rsorrells View Drop Down
Newbie
Newbie
Avatar

Joined: 03 July 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsorrells Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2006 at 4:30pm
I finally figured it out !!  
 
The default.asp code ships like this:
 
<title>Web Wiz Rich Text Editor</title>
<!--#include file="RTE_configuration/browser_page_encoding_inc.asp" -->
 
It needs to be like this:
 
<!--#include file="RTE_configuration/browser_page_encoding_inc.asp" -->
<title>Web Wiz Rich Text Editor</title>

 
I figured it out by starting with a clean page in Dreamweaver, and I kept adding code from the default.asp until it broke, and then found that this was the key difference.
 
Also I used charset=iso-8859-1 in browser_page_encoding_inc.asp.
 
Bob


Edited by rsorrells - 15 July 2006 at 4:32pm
Back to Top
bchavez View Drop Down
Newbie
Newbie


Joined: 14 July 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bchavez Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2006 at 2:23pm
Hi!!

Tks, I read all the other post, but it still makeing me the same... can you tell me why if I write directly in the html source &aacute;, when It writes convert directly to á and don't write the &aacute; for me it's extrange... do you know why....

regards
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.