473,396 Members | 1,929 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,396 software developers and data experts.

Scpecial Chars - 'Ăi' to 'á' - charset

Hi all...

I have a sql table that contains files saved with special chars i
think, for example, 'AmapĂi', where we expect 'Amapá'.

When i debug my var on phped, i see 'Amapá' and when i look at any
browser, netscape or IE i see 'AmapĂi'.

Anybody have a hint??? I don't know what to do...
Thank you all!!!
Jul 17 '05 #1
2 2440
JoeAley2003 <jo*********@yahoo.com> wrote:
When i debug my var on phped, i see 'Amap?' and when i look at any
browser, netscape or IE i see 'Amap?i'.


The first ? is an iso-8859-1 character, the second one is utf-8 encoded.

If you'll send the proper content-type (charset=utf-8), your problem
will propably dissapear.

But best would be to figure out what you are really storing in the db!
Maybe you're seeing the information you expect in phped because that is
unicode aware, else some one/thing is translating out input/output
(mbstring of iconv could be doing that).

--

Daniel Tryba

Jul 17 '05 #2
The second string is not proper utf8 text, since the high-order bit of the
second byte isn't set. Hopefully it's conversion problem in posting to the
newsgroup. Otherwise, Mr. JoeAley is looking at a database full of corrupted
data.

Uzytkownik "Daniel Tryba" <ne****************@canopus.nl> napisal w
wiadomosci news:c3**********@news.tue.nl...
JoeAley2003 <jo*********@yahoo.com> wrote:
When i debug my var on phped, i see 'Amap?' and when i look at any
browser, netscape or IE i see 'Amap?i'.


The first ? is an iso-8859-1 character, the second one is utf-8 encoded.

If you'll send the proper content-type (charset=utf-8), your problem
will propably dissapear.

But best would be to figure out what you are really storing in the db!
Maybe you're seeing the information you expect in phped because that is
unicode aware, else some one/thing is translating out input/output
(mbstring of iconv could be doing that).

--

Daniel Tryba

Jul 17 '05 #3

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

Similar topics

12
by: lawrence | last post by:
How do I get PHP to tell the server that when I echo text to the screen, I need for the text to be sent as UTF-8? How does Apache know the right encoding when all the text is being generated by...
1
by: Bubbi | last post by:
Hi! I saw that there was some writing about it but nothing helps I have hosting in some firm in US. I set ma database charset to windows-1250. I also set all tables to that charset. Insert with...
16
by: lawrence | last post by:
I was told in another newsgroup (about XML, I was wondering how to control user input) that most modern browsers empower the designer to cast the user created input to a particular character...
5
by: Guoqi Zheng | last post by:
How can I know the charset of string? I only need to know a string contains only ascii characters or it contains more than just ascii, maybe some chinese characters. how can I do this? -- Kind...
1
by: Marc Scheuner | last post by:
Folks, we're trying to stream back a result set from a SQL query into Excel from our ASP.NET application. Basically, we're doing this here: Response.ContentType = "text/csv";...
0
by: eros | last post by:
How to supports Japanese characters. Problem: When I insert the data into database. The data inserted are garbage. Maybe there is configurations or code to be added at first. here is my...
0
by: Proogeren | last post by:
I am writing a html tabel to a excel file. This works great however Im not getting the norwegian chars "ć ř ĺ" in the filename of the excel file These 3 letters are translated into some crazy...
3
by: Gandalf | last post by:
now I understand my problem better so their is a good chance you manage to help me. I have a SQlite database full with ANSI Hebrew text , and program that uses WXpython Now, I use a-...
5
matheussousuke
by: matheussousuke | last post by:
Hi guys, good morning. I've just get this script for converting mysql tables from wordpress, and I want to use it in my server, but no with wordpress, with oscommerce, a friend of mine told me a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.