Solved

Character encoding - Entries in Access Database

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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