TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-16-2008, 09:38 PM   #1 (permalink)
The Wanderer
 
Join Date: Jun 2005
Posts: 21
Thanks: 1
Jako is on a distinguished road
Default Datbase accepting foreign letters?

How do I input words into a database while keeping the formatting of the text that I copied with accents, etc.

is what happens.
Jako is offline  
Reply With Quote
Old 08-16-2008, 10:08 PM   #2 (permalink)
The Wanderer
 
Join Date: Jun 2005
Posts: 21
Thanks: 1
Jako is on a distinguished road
Default

Tossing, <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" > into the header seems to have fixed it.
Jako is offline  
Reply With Quote
Old 08-18-2008, 03:26 AM   #3 (permalink)
The Wanderer
 
Join Date: Jun 2005
Posts: 21
Thanks: 1
Jako is on a distinguished road
Default

Now only question is...is there a way to search using normal letters for a word that maybe contains a accent?

For example, Confederación and Confederation return the same results.
Jako is offline  
Reply With Quote
Old 08-18-2008, 12:23 PM   #4 (permalink)
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

I have run into this same problem on an application I am working on but we are putting it off but will more then likely just remove the accent before entering it into the database because mssql full text search doesnt see them as the same thing, and thats whats being used.
CoryMathews is offline  
Reply With Quote
Old 08-18-2008, 12:47 PM   #5 (permalink)
The Wanderer
 
Join Date: Jan 2008
Posts: 21
Thanks: 0
Speeple is on a distinguished road
Default

That is due to folding and mapping of characters to a common derivative - which is normally a English-Latin characters (non-accented Latin) due to the dominance of English in programming implementations.

It normally makes sense to add folding, Google for example employ the technique also.

There might be a config option in MSSQL, but in MySQL it's an in-built feature.

For non-FT queries you can do a binary compare:

SELECT * FROM myTable WHERE BINARY title = 'Confederación';
__________________
AKA Martin Gallagher
Speeple is offline  
Reply With Quote
Old 08-27-2008, 05:47 PM   #6 (permalink)
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

Google soundex
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:56 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design