Solved

Character encoding - Entries in Access Database

Posted on 2004-10-06
5
635 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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