Solved

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

Posted on 2004-08-09
8
372 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

15 Experts available now in Live!

Get 1:1 Help Now