Results 1 to 2 of 2

Thread: Encoding

  1. #1
    Conrad Guest

    Default Encoding

    I am trying to insert a record into a database. The problem I am having is this: when the string(taken from a form) contains special characters (&#060;&#062;?/&#039";:) the page that inserts it into the database it causes errors.<BR>Seeing how I just input those special characters into this form and the knowledge that I can look at this posting later tells me that this is fixable problem.<BR><BR>Thanks.<BR>Conrad

  2. #2
    Join Date
    Dec 1969

    Default RE: Encoding

    Normally the only character that causes problems is &#039, which you fix by doing:<BR><BR>&#060;%<BR>fixForDBuse = Replace( rawText, "&#039", "&#039&#039" )<BR>%&#062;<BR><BR>If those other characters are causing problems, you must be doing something outside the ordinary, so I think you need to show some code.<BR><BR>Show relevant pieces of both the posted-from page and the actual ASP write-to-db page.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts