Hello, I'm having some trouble with a £ sign, it's being displayed to the user as the <?> question-mark-in-a-black-diamond icon. I have an SQL Server database with a £ in a table. (Collation Latin_General_C1_AS which is analoguous to 8859-1) I have a PHP script which retreives this record without issue and can display it on a web page OK. This is with the PHP script file's encoding set to UTF-8 without BOM. The issue appears to be displaying the page in an AJAX request. var http = new XMLHttpRequest; ... document.getElementById('myDivElement').innerHTML = http.responseText; http.responseText appears to be treating the results …

Member Avatar
Member Avatar
+0 forum 2

I am writting a simple C++ programm and I want to generate outputs to the console but with the functions 'fwrite' and 'printf'. However, I can't print special characters like 'á', 'é', ... Here is a simple code: printf("Special character: 'ñ'"); Were the output was `±` I found that those characters are printed as ascii but they were encoded in Utf8. I don't know how to make this output visible correctly, I'm using the Microsoft Visual Studio. Any help?

Member Avatar
Member Avatar
+0 forum 3

Sooo ... I learned during my schema migration that our webpages use UTF-8 encoding but our MySQL database (all InnoDB tables) uses latin1. After finally running some utf8_decode() php magic, I was finally able to successfully get all posts to display correctly again. However, now that I realize there's an issue, I want to do something about it moving forward. I'm not so sure it's a good idea to continue to be throwing UTF-8 encoded characters into a latin1 column in the database. While we are an English-speaking site, a lot of users will sometimes use non-English characters within their …

Member Avatar
Member Avatar
+1 forum 1

Hi everubody! I have a huge issue with dates and encoding in my database. Two weeks ago I restored a database from an Xcloner copy to my site, since then all problems are there. My site language is Spanish, and I was using in Wordpress define('DB_CHARSET', 'UTF8'); Since then if I put utf8 nothing works,if I put define('DB_CHARSET', ''); site works more or less fine. The major problem is that I use a plugin that stores DATEs to work and now all dates are simply 1970 00:00:00 Database encoding is utf8,everything is exactly as it was before, but i'm having …

Member Avatar
Member Avatar
+0 forum 6

Hi, i cant seem to get my head around this 1. its about utf8 to u32 and vice versa. I have a file which is written using a custom logic by someone else in vc++, and am reading the same in my c sharp application. Initially while i was debugging the c++ code, i did find ,there was utf8 and unicode convertion happening while writing on to file, then now i could find there is also utf8 to u32 method. My question is how do i do that in c sharp. though, the logic i have written now is, a …

Member Avatar
Member Avatar
+0 forum 2

Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The problem is that I receive the client request to create a new album with the album name being encoded in some way, which I can't figure out. Here's what I have so far: 1. A simple .html file that contains the form (it's quite large, so I won't post it …

Member Avatar
Member Avatar
+0 forum 3

The End.