Solved

Character encoding - Entries in Access Database

Posted on 2004-10-06
5
633 Views
Last Modified: 2008-03-10
Hi,

I've got a website where a user has to enter in some details and these are saved to a Micosoft Access Database. The problem is that when some users enter in "special" characters such as ñ,ç,ï they are not saved properly in the database.

I'm not sure if this problem arises when the user fills out the web form or when the data is transfered to the database. When I try from my computer on localhost or on the web, everything works okay...

Thanks for any help!
0
Comment
Question by:siono2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Accepted Solution

by:
kmorris1186 earned 125 total points
ID: 12237905
you could try using escape() to encode them using the %XX format (like %20 for a space, etc..)
then unescape() to unencode them.

just a thought.

When you try this on localhost they store in the access DB just fine? but not when doing this from another pc?
0
 
LVL 8

Assisted Solution

by:a_twixt_in_the_tale
a_twixt_in_the_tale earned 125 total points
ID: 12238271
In vbscript the equivalent would b

Server.URLEncode(Request.Form(<variable_name>)) befr inserting into DB

anyways ud have to unencode using javascript ;)
separate file
<SCRIPT language="javascript" runat=Server>
function w(s){
      var str = new String(s)
      return unescape(str.replace(/%26/g,"%26amp"));
}
</SCRIPT>

include this file in the asp page. function call w(<string>)

:)
Don
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Html split(text) 2 48
ASP Classic - Read XML File inner content 10 72
Building JSON Results Table FROM DB 9 49
Validating number not work with decimal 4 45
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question