character-encoding

Wordpress - HTML Entities are being Displayed

Hi, I am currently developing a Wordpress site, and everytime a comment, page or article is added/retrieved, the HTML entites in the text are encoded, particulary single quotes/double quotes, like #089A. Is there a setting or something that can be enabled/disabled that does this? I've tried the usual Google searches but alas I can't f...

Why is IE failing to show UTF-8 encoded text?

I have a some Chinese characters that I'm trying to display on a Kentico-powered website. This text is copy/pasted into Kenticos FCK editor, and is then saved and appears on the site. In Firefox, Chrome, and Safari, the characters appear exactly as expected. In IE 8 Standards mode, I see only boxes. The text is UTF-8 encoded, and as ...

Unreadable buffer names in Emacs 23.2

I just upgraded from Emacs 21.2 to 23.2 (on Windows XP) and while I managed to tweak my .emacs to fit the new changes, I couldn't find a solution for the unreadable buffer names: Neither in the minibuffer, nor in the buffer menu can the characters be displayed normally. Instead, all I see are the infamous Unicode blank rectangles. Any ...

Encoding problem: ("£") displaying instead of £.

I am accessing data from an SQLServer database to my ASP.Net C# based website. Now this data that i'm accessing is recieved from affiliate companies and it contains "& amp;#163;" (without quotes and space) for the £ sign. But when I'm displaying this data inside a label, instead of £ it shows "& #163;" (without quotes and space again ofc...

Website character encoding

I have a website in Turkish language. I have the text in turkish and shows well in the editor. When i publish it and view it in the browser; the term : müdürlügü shows as : m�d�rl�g� How can i avoid this? Character encoding of the site is : UTF-8 ...

Strange character from iPhone keyboard

Hey guys, I have an iPhone app with thousands of users. Stuff they type goes into my database. I noticed an infrequent crash recently, and tracked it down to a piece of code failing when it had to deal with this character "…" (that's one character, not three dots). Obviously I need to fix my code to deal with it, but in the meantime. D...

Do I really need to encode '&' as ' &' ?

I'm using an '&' symbol with HTML5 and UTF-8 in my site's <title>. Google shows the ampersand fine on its SERPs, as do all the browsers in their titles. http://validator.w3.org is giving me this: & did not start a character reference. (& probably should have been escaped as &amp;.) Do I really need to do &amp;? I'm not fussed abo...

Working out file encoding: I know the string, know the character, what is the encoding?

I'm adding data from a csv file into a database. If I open the CSV file, some of the entries contain bullet points - I can see them. file says it is encoded as ISO-8859. $ file data_clean.csv data_clean.csv: ISO-8859 English text, with very long lines, with CRLF, LF line terminators I read it in as follows and convert it from ISO-885...

Getting special characters with gettext

Hi. I am using gettext to translate my site. In norwegian I need to use the charaters æøå, but they show up blank. I have set the $encoding = 'iso-8859-1';from wikipedia it says that æøå should be available, but as I said they show up blank. In poedit settings and my po/mo file I have set encoding to iso-8859-1. ps. I want to support a...

Funny characters in my db

My web app is breaking when I try edit a certain content type and I'm pretty sure it is because of some weird characters in my database. So when I do: SELECT body FROM message WHERE id = 666 it returns: <p>⢠<span></span></p><p><br /></p><p><em><strong>NOTE:</strong> Please remember to use your to participate in the discussion.</em>...

base64 encoding: input character

I'm trying to understand what the input requirements are for base64 encoding. Nicholas Zakas, who I have tremendous respect for has an article here where he quotes a specification that an error should be thrown if input contains any character with a code higher than 255 Zakas Article on base64 Before even attempting to base64 encode ...

change mysql default character set to UTF8 in my.cnf?

currently we are using following commands in PHP to set the character set to UTF8 in our application. Since this is a bit of overhead, we'd like to set this as the default setting in mysql. Can we do this in /etc/my.cnf or in another location? SET NAMES 'utf8' SET CHARACTER SET utf8 I've looked for a default charset in /etc/my.cnf b...

ADO.NET + Sql Server Varchar encoding problem

Put simply, I have a set of special characters in a Sql Server database varchar column, and I want to fetch it from a C# application. Now the difficulty is: using Query Analyzer, I get the desired value of: "·°ï££". However, through the client application, I end up with: "À░´úú". It's a varchar column in a database with collation SQL_...

What kind of char is this and how do I convert it to a text?

What kind of char is this and how do I convert it to a text in c#/vb.net? I opened a .dat file in notepad, took a screenshot and attached it here. ...

MySQL, polish characters and duplicate insert statement.

Hi. I've got a problem with inserting two rows to table. The database is in UTF8. The problem seems to be connected to the collation. This statement works: insert into test(code,text) values('xx','aaa'); However when i try to add other row to the table: insert into test(code,text) values('xx','aąą'); it fails with duplicate entry e...

Encoding issue, coverting &amp; to & for html using php

I have a url in html: <a href="index.php?q=event&amp;id=56&amp;date=128"> I need to turn it into a string exactly as: <a href="index.php?q=event&id=56&date=128"> I know how to do this with preg_replace etc, but is there a function in php that deals directly with encoding that I can use for other encoding issues such as &nsbp (or wh...

online encoding checker tool

hi, I am looking for a tool buy which i can identify the exact encoding of input file. please suggest any online encoding checker tool, Thanks ...

Problem writing UTF-8 encoded file in PHP

Hi all, I have a large file that contains world countries/regions that I'm seperating into smaller files based on individual countries/regions. The original file contains entries like: EE.04 Järvamaa EE.05 Jõgevamaa EE.07 Läänemaa However when I extract that and write it to a new file, the text becomes: EE.04 Järvamaa EE...

Why do we use Base64?

Wikipedia says Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remains intact without modification during transport. But is it not that data is always stored/transmitted i...

get � when for special characters using gettext and smarty

Hi. I am using $encoding = 'utf-8'; in gettext and in my html code i have set <meta charset="utf-8">. I have also set utf-8 in my .po files, but I still get � when I write æøå! What can be wrong? ...