encoding

Cannot show the downloaded webpage with proper encoding using PHP

I have to get the content of a persian page and show a part of that page to some users. The problem is after I filter the page content I cannot show the content with the proper encoding. The webpage is located at sena.ir and here is the screen shot of the original webpage part I want to show: And here is what I got: Here is the fun...

data porting problem in mysql

in porting data from one mysql database to other .. there have come some errors like appostrophe's have got converted into †.. in a field called story . why did this happen and what should i do now to correct the new database. i have only the phpmyadmin access of the two databases ...

Encoding cp1252

When i try the following in java System.out.println(System.getProperty("file.encoding")); i get cp1252 as the encoding Is there a way to know where this value is coming from ? (Like Environment variables or something) I would like to print the value of encoding on command prompt using some command like systeminfo on windows xp. ...

sql server output charset

Is there any way to get SQL Server result in charset different from the native database encoding? I mean something like "set names" which is used by MySQL. ...

what is tpkeys in vb 6.0

dim vkeys as tpkeys above is a code but i dont understand what does it mean ...

# character in path of javascript reference

I have a web page that pulls in several javascript files in the HEAD section. The path to one of those files is generated dynamically, and I'm seeing an issue with some paths that include the # character. For example, the following path does not resolve correctly, and therefore the .js file does not load (even though I've verified that...

Is it correct to write to a database which has 'NLS_CHARACTERSET' and 'NLS_NCHAR_CHARACTERSET' parameter values AL32UTF8 and UTF-8 with UTF-16 code page values?

The value of parameters 'NLS_CHARACTERSET' and 'NLS_NCHAR_CHARACTERSET' is UTF-8 for source database from where i am reading data, and AL32UTF8 and UTF-8 for target database where i am writing data. I am reading data from a text file which has english, european and asian characters, I am using UTF-16 code page to read from source flat fi...

latin-1 to utf-8 data porting

i have an old site whose database is in latin-1 encoding. i have created a drupal site duplicate of old site By default drupal database is in utf-8 encoding now how do i port the database from latin-1 to utf-8 . i tried myself and i get unwanted charachters . how should i do it. ...

can i change the default encoding of my mysql server from latin-1 to utf-8 ?

can i change the default encoding of my mysql server on my computer from latin-1 to utf-8 ? ...

Chinese character in Url problem with Java

I cut and pasted the following line in to my Firefox url field : http://www.baidu.com/s?wd=你 This line was generated by my Java program. The last Chinese char in the Firefox field sometimes became : %C4%E3 [ Correct ] Other times it became this : %E4%BD%A0 [ Incorrect ] I tried to cut and paste the url into IE. In the url field it ...

HTML Mails by Google - No HTML Code

I received a promotional mail from Google AdWords. Because I liked the layout, I thought of giving a look at the HTML source of the mail. When I clicked 'Show original' from the mail options, I saw no HTML code, but a bunch of encoded text. It was something like this: --===============0308376380== MIME-Version: 1.0 Content-Type: text/h...

Converting UTF-8(or other 8-bit encoding) to 7 or fewer bits.

I wish to take a file encoded in UTF-8 that doesn't use more than 128 different characters, then move it to a 7-bit encoding to save the 1/8 of space. For example, if I have a 16 MB text file that only uses the first 128(ascii) characters, I would like to shave off the extra bit to reduce the file to 14MB. How would I go about doing thi...

Upsidedown question marks question

We have a very strange problem in out application, all of a sudden we started noticing upside down question marks being saved along with other text typed in to the fields on the screen. These upside down question marks were not originally entered by the users and it is unclear where they come from. We are using Oracle 10g with Asp.Net. ...

Moving PostgreSQL database fails on non-ascii characters with 'value too long'

# Dump my database to a tar file pg_dump -f myDatabase.tar -F t -h myServer -U myUser -W -i myDatabase # create a new database createdb -h myServer -U myUser -T template0 myDatabaseCopy # restore my database pg_restore -d myDatabaseCopy -h myServer -U myUser myDatabase.tar Then I get this error, and the import fails for an entire table...

Does myfaces ExtensionsFilter change page encoding?

two days ago i started using tomahawk ExtensionsFilter components im my jsf application. i noticed that all javascript alerts were not displaying special characters (ç, ã, ó ô), it displays things like #231 instead. When i remove ExtensionsFilter from my web.xml file, javascript displays allright. Anybody had this issue before? thanks i...

Change encoding of HttpServletResponse

Hi, I have an API that returns XML, it actually returns it using the default encoding (I believe it's UTF-8), but now requirements have changed and we need to return everything in UTF-16LE. My question is: is there an easy way of doing this? I have access to the response just before the calls complete so I was wondering if I could do s...

Why do Excel and IE8 give an error when viewing XML with an ë in it?

Maybe this is an encoding issue? I can't imagine that you have to replace every non standard character. Example XML: <?xml version="1.0" encoding="utf-8"?> <client> <achternaam>Erriëns</achternaam> </client> With or without the first line doesn't matter. Error in IE8: The XML page cannot be di...

Problem with LaTeX hyperref

i have an url with cyrilic characters: http://www.pravoslavie.bg/Възпитание/Духовно-и-светско-образование when i compile the document, i get following as url: http://www.pravoslavie.bg/%5CT2A%5CCYRV%20%5CT2A%5Ccyrhrdsn%20%5CT2A%5Ccyrz%20%5CT2A%5Ccyrp%20%5CT2A%5Ccyri%20%5CT2A%5Ccyrt%20%5CT2A%5Ccyra%20%5CT2A%5Ccyrn%20%5CT2A%5Ccyri%20%5...

C#, XmlDocument, and special ISO Latin characters

I'm trying to load up xml into an XmlDocument, but it doesn't recognize the encoded '&eacute' and throws an error 'An error occurred while parsing Entity Name'. Now I can add a custom entity set in a DTD of my xml, so the XmlDocument loads properly. But what I'm hoping is that I can reference a url that has a common set of these ISO La...

How to display code in plain text?

What previous result you are referencing:(Optional) function getSize() { var myFSO = new ActiveXObject("Scripting.FileSystemObject"); var filepath = document.upload.file.value; var thefile = myFSO.getFile(filepath); var size = thefile.size; alert(size + " bytes"); } A user input some Javascript code, but the code can not be...