Solved

How to set up mysql to get both ?-sign and å,ä,ö (swedish signs)?

Posted on 2004-08-09
8
371 Views
Last Modified: 2008-01-09
Hi,

I have set up my MySQL5.0 server without problems, but now when I use tables with tuples that contain ? (euro-sign) they are not shown as they should (shown as ?). I guess this is a char-set problem but I haven't been able to solve it. I currently use the latin1_swedish_ci collation. The problem is that I need to be able to show the swedish å,ä,ö (å,ä and ö) as well. Does anybody know how to solve this?

Thanks,
//madwax
0
Comment
Question by:madwax
8 Comments
 
LVL 7

Author Comment

by:madwax
ID: 11752020
note: the euro sign isn't shown here either, I guess that EE has the same problem... :(
0
 
LVL 11

Expert Comment

by:ajaikumarr
ID: 11752101
Hai,

Are you storing the content from HTML editors??? Might be the problem is with encoding and decoding...

Bye
ajai
0
 
LVL 7

Author Comment

by:madwax
ID: 11752137
nope, the same thing happens if I just enter a normal sql query as INSERT INTO table(field) VALUES("?-sign")

0
 
LVL 7

Author Comment

by:madwax
ID: 11752361
I experience the same problem with @ which is even worse... :(
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 3

Expert Comment

by:thecode101
ID: 11754643
I tried the normal SQL query and it worked fine
INSERT INTO `table` ( `thefield` )
VALUES ( '@å,ä,ö å,ä and ö');

It didn't complain about any errors. Is that what your having the problem with or is it with displaying the sql field?
0
 
LVL 7

Author Comment

by:madwax
ID: 11755998
I can enter the value into the database, but as soon as the value is entered it changes to a ? which I figure is the unknown character (I use phpAdmin and console mysql). It is a charset problem, but I don't know how to fix it... :(
0
 
LVL 3

Accepted Solution

by:
thecode101 earned 400 total points
ID: 11762698
I was using phpAdmin as well and it showed up fine after it entered in the database. I think it could be a browser charset problem, so try going to "View >> Character Encoding" or "View >> Encoding" depending on what browser your using. I am using Western and it shows up fine.
0
 
LVL 3

Expert Comment

by:krazywest
ID: 11831429
Try setting the field type (encoding) to unicode.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now