473,378 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Swedish Characters

Hi I thought that working with swedish characters would be easy, but
since I'm working with MySQL 4.1 that's not the case any more.
First thing I noticed (emditly) was an application that I've written
in Qt showd rubbish in the QDataTable where there should be swedish
characters. So I took a look in the database using the 'mysql' client
app, but using this, all is good? So I made a 'mysqldump -u xx -pxx
dbname < cazzo.sql' and took a look in the .sql file, but again the
swedish characters were rubbish.
I've really tried a lot of thing to solve this. E.g. changing the
default-character-set to all kinds of values, creating new databases,
etc etc. But I just can't get it. What am I missing?
Any help would really be nice ... please

Tim Mickelson
Jul 20 '05 #1
5 3486
Tim Mickelson wrote:
Hi I thought that working with swedish characters would be easy, but
since I'm working with MySQL 4.1 that's not the case any more.
First thing I noticed (emditly) was an application that I've written
in Qt showd rubbish in the QDataTable where there should be swedish
characters. So I took a look in the database using the 'mysql' client
app, but using this, all is good? So I made a 'mysqldump -u xx -pxx
dbname < cazzo.sql' and took a look in the .sql file, but again the
swedish characters were rubbish.
I've really tried a lot of thing to solve this. E.g. changing the
default-character-set to all kinds of values, creating new databases,
etc etc. But I just can't get it. What am I missing?
Any help would really be nice ... please

Tim Mickelson


Not sure it matters, but you have your arrow the wrong way. Try ">"
instead.
Jul 20 '05 #2
no, that's not my problem :) just an error when writing the e-mail.


Paul Bramscher wrote:
Tim Mickelson wrote:
Hi I thought that working with swedish characters would be easy, but
since I'm working with MySQL 4.1 that's not the case any more.
First thing I noticed (emditly) was an application that I've written
in Qt showd rubbish in the QDataTable where there should be swedish
characters. So I took a look in the database using the 'mysql' client
app, but using this, all is good? So I made a 'mysqldump -u xx -pxx
dbname < cazzo.sql' and took a look in the .sql file, but again the
swedish characters were rubbish.
I've really tried a lot of thing to solve this. E.g. changing the
default-character-set to all kinds of values, creating new databases,
etc etc. But I just can't get it. What am I missing?
Any help would really be nice ... please

Tim Mickelson

Not sure it matters, but you have your arrow the wrong way. Try ">"
instead.

Jul 20 '05 #3
Here's another trick question for you. What are you using to look at
the file with? I'm not sure how mySQL dumps out the characters -- but
it's possible they are correct and your editor is not displaying them
properly?

Tim Mickelson wrote:
no, that's not my problem :) just an error when writing the e-mail.


Paul Bramscher wrote:
Tim Mickelson wrote:
Hi I thought that working with swedish characters would be easy,
but since I'm working with MySQL 4.1 that's not the case any more.
First thing I noticed (emditly) was an application that I've
written in Qt showd rubbish in the QDataTable where there should be
swedish characters. So I took a look in the database using the
'mysql' client app, but using this, all is good? So I made a
'mysqldump -u xx -pxx dbname < cazzo.sql' and took a look in the .sql
file, but again the swedish characters were rubbish.
I've really tried a lot of thing to solve this. E.g. changing the
default-character-set to all kinds of values, creating new databases,
etc etc. But I just can't get it. What am I missing?
Any help would really be nice ... please

Tim Mickelson


Not sure it matters, but you have your arrow the wrong way. Try ">"
instead.

Jul 20 '05 #4
Paul Bramscher <br*************@tc.umn.edu> wrote:
Here's another trick question for you. What are you using to look at
the file with? I'm not sure how mySQL dumps out the characters -- but
it's possible they are correct and your editor is not displaying them
properly?


That was my thought too. Output may very well be unicode (UTF-8).
Looks really ugly if you don't have the proper reader. Then you will
see each å, ä or ö as a set of two very odd non-ascii characters.
If that is the case, try to find an interface that supports unicode.

I am trying out a php based booking system for meeting rooms (mrbs) on
my Mac at work - first I had to turn off either unicode support or the
translation modules, since the build-in php module lacked the required
iconv support. Weekdays looked weird in Swedish browsers.

After a few weeks of testing I assembled some courage and installed
PHP5, then I re-enabled unicode support, and it looks fine now.

--
I recommend Macs to my friends, and Intel machines
to those whom I don't mind billing by the hour
Jul 20 '05 #5
Tim
Actually I thought about that to. I changed the character set in mysql
from utf8 to latin1 to.... Etc. And I'm using gvim for windows to look
with, it has latin1 as default character set. When changing from, say
latin1 to utf8 in my db, the output changes, but is always rubbish. If I
put åäö in the database from my application, written in Qt, in the database
I see strange characters, when looking in my datatable in the application,
all is ok, if I put the åäö from the 'mysql' client app, then all looks ok
from the query inside the 'mysql' but in the datatable, only rubbish.

I understand that there is a real big messup here with the character sets
from my side, but I'd like to understand what's happening. If I create a db
with CREATE DATABASE cazzo DEFAULT CHARACTER SET latin1, then all varchars
are latin1 or no? But why can I not see the swedish chars in my app, or in
a mysqldump? Neither if I use utf8. There is something I'm missing here.

Tim.

Asterix wrote:
Paul Bramscher <br*************@tc.umn.edu> wrote:
Here's another trick question for you. What are you using to look at
the file with? I'm not sure how mySQL dumps out the characters -- but
it's possible they are correct and your editor is not displaying them
properly?


That was my thought too. Output may very well be unicode (UTF-8).
Looks really ugly if you don't have the proper reader. Then you will
see each å, ä or ö as a set of two very odd non-ascii characters.
If that is the case, try to find an interface that supports unicode.

I am trying out a php based booking system for meeting rooms (mrbs) on
my Mac at work - first I had to turn off either unicode support or the
translation modules, since the build-in php module lacked the required
iconv support. Weekdays looked weird in Swedish browsers.

After a few weeks of testing I assembled some courage and installed
PHP5, then I re-enabled unicode support, and it looks fine now.


Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Toffe | last post by:
Hi, I've got a problem with regular expressions and strings containing Swedish characters (åäö). I basically have a PHP script that highlights certain words in a text. I found the code...
0
by: ras | last post by:
I am from Sweden and I am trying to use Simple Search from Matt's Script Archive on my home page (web server is located in the United States) but it cannot find anything with Swedish special...
9
by: Anna | last post by:
Hi, I use the Swedish letters å,ä,ö in my HTML code and it works perfectly in IE, but not in Netscape and Mozilla browsers. Does anyone know how to fix it? I use &aring for å, &auml for ä and...
1
by: Clarkbones | last post by:
When installing Access 2000, linked foxpro tables does not return the swedish characters å,ä,ö correctly. Has anyone any suggestion how to correct this behavior? This worked fine with Access 97...
12
by: MA | last post by:
Hi all! I have a major problem. I need to write an textfile with 1 b per letter. But it should be able to handle swedish letters to (åäö). Is it possible to use 8 b ASCII for this? This file is...
1
by: Fredrik Melin | last post by:
Hi, I get all kind of strange characters when using Response.Write on swedish characters (ÅÄÖ) Like the word PÅ becomes PÃ. What do I need to do to get it to output the correct character to...
5
by: Henke | last post by:
Hi! I have streamed files to a database and use Response.BinaryWrite to open them. When the file name contains å,ä or ö they get replace by for example Ã¥. I have tried changing the CharSet on...
1
by: David | last post by:
Hi, I was looking for pointers as to why mail() would not send non standard ascii characters correctly. The web page has the correct encoding, and in the code this is set: $headers =...
0
by: MikeMikeMike | last post by:
Hi, I'm getting a strange problem and would like to search for an answer. However my OS is Swedish so the error I get is in Swedish. I can't begin to tell you how much information there is in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.