473,399 Members | 2,478 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,399 software developers and data experts.

Encoding problem, can't solve it

Text I get:
# stat¸ pakeitimai
# em s paskirties keitimas

As you can see some letters isn't exactly as it should be. It's in
UTF-8 in MySQL (utf8_lithuanian_ci) and I transfer using utf8
encoding. The problem I need those letters, I think those should be
called latin. But where they are gone I can't image. I tried a lot
conversations tools but they didn't help me...

Jul 26 '07 #1
1 1129
It could be ridiculous, but right now I decided to use this function:
function fix_string($str)
{
$bad = Array(' ', ' ', '¿', ' ', ' ', ' ', '¸', ' ', ' ', ' ', ' ',
'¯', ' ', ' ', ' ', '¨', ' ', ' ');
$fix = Array('à', 'è', 'æ', 'ë', 'á', 'ð', 'ø', 'û', 'þ', 'À', 'È',
'Æ', 'Ë', 'Á', 'Ð', 'Ø', 'Û', 'Þ');

return str_replace($bad, $fix, $str);
}

Jul 26 '07 #2

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

Similar topics

6
by: WEIWEIWEI | last post by:
Hi Al I'd like to encode a string submitted from a utf-8 form in a aspx page to big5 Any ideas on how to do that I try sth like public static string unicode_big5(string src) { Encoding big5...
2
by: Thomaz Pereira | last post by:
Hi; I use the method below to save the an image showed in a Picture Box using the SaveFileDialog. protected void SaveImage() { try { Stream stream = File.OpenWrite (this.CaminhoImagem);
2
by: Jet Leung | last post by:
When I debug my program and it return me an error call " have not handle ¡°System.StackOverflowException¡± appear in system.windows.forms.dll " How can I solve this problem??
8
by: MyAlias | last post by:
Can't solve this CallBack returning structures Error message: An unhandled exception of type 'System.NullReferenceException' occurred in MyTest.exe Additional information: Object reference not...
2
by: daemon | last post by:
I'm very sorry for the offtopic, but I haven't known where else to post. Can I solve n-order linear ode with gsl? Some like this: f(n)(x) - it's n-order derivative of f(x) A(n), B, D - scalar...
1
by: Boki | last post by:
Hi All, Here is the code: Shell("D:\Program Files\Mozilla Firefox\firefox.exe http://tw.dictionary.yahoo.com/search?ei=UTF-8&p=" & TextBox1.Text) If I type English word in TextBox1, I can...
2
by: Peter2 | last post by:
Hi, I have a problem posting non-ASCII characters in FORM fields between classic ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net 2.0 and visual Studio 2005 installed,...
4
by: abhilash12 | last post by:
memory out of bound exception in javascript so pls tell me what is the reason
2
by: leninbecse | last post by:
org.apache.poi.hssf (eclipse compiler) tells cannot resolve symbol?how can i solve this problem?
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: 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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.