Solved

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

Posted on 2004-08-09
8
378 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
[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
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
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 7

Author Comment

by:madwax
ID: 11752361
I experience the same problem with @ which is even worse... :(
0
 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SubQuery link 4 59
migrating to phpbb forum from vBulletin 4.2 3 97
MySQL programmer starter 25 66
MySql Linux vs Windows: bad results for Windows but why? 10 76
Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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