473,809 Members | 2,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3518
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
8214
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 attached below in the commented manual at php.net. It works great for all words that do not contain Swedish characters. The words that do contain åäö will not be highlighted.
0
1473
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 characters in it. Does anybody know if something can be done, or where I might find some info about how to do it myself? Any help would be most appreciated, thanks, Mike
9
5634
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 &ouml for ö. Thanx
1
2219
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 and the visual foxpro driver, now I use the odbc driver of Access 2000.
12
15466
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 used by an sms application and cannot be in another format. /Marre
1
1969
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 the browser.
5
5210
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 the Response object but it didn't solved my problem. Does anybody know how the fix this problem? /Henke
1
6854
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 = "Content-type: text/plain; encoding=iso-8859-1\r\n"; What other factors could affect this. Im guessing the ISP's mail system is using sendmail - to be confirmed. If no does anyone have source that does send "non-standard" ascii
0
780
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 Swedish on my error. None! Is there a way for me too see what my error is called in English? If there is a Swede out there who can help ou I'm pasting the error here.
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.