I'm using Java and Spring's JdbcTemplate class to build an SQL query in Java that queries a Postgres database. However, I'm having trouble executing queries that contain foreign/accented characters.
For example the (trimmed) code:
JdbcTemplate select = new JdbcTemplate( postgresDatabase );
String query = "SELECT id FROM province WHER...
I have a script which tracks visits & referers to a website.
I send the document.referrer (I use escape() in javascript) to the server
and store the string in the database, after decoding it using HttpUtility.HtmlDecode (C#).
For most cases, I can parse the referer string and show hebrew characters,
but there are a few cases which I ca...
Hello!
When I encode an array to JSON I get "u00e1" instead of á.
How could I solve the character encoding?
Thanks
...
I have an environment variable set in Windows as TEST=abc£ which uses Windows-1252 code page. Now, when I run a Perl program test.pl this environment value comes properly.
When I call another Perl code - test2.pl from test1.pl either by system(..) or Win32::Process, the environment comes garbled.
Can someone provide information why t...
I need to get a string from URL request of brower, and then create a text image by requested text. I know the default encoding of the Java net transmission is "ISO-8859-1", it can works normally with all characters what defined in "ISO-8859-1". But when I request a multi-byte Unicode character (e.g. chinese or something like ¤ж), then I ...
Recently, I switched from Visual Studio to Eclipse CDT. I've set it up beautifully such that the G++ compiler from my Cygwin installation can locate and compile my code without ado.
There is a minor grievance, however. Each time G++ reports a warning or error, the curly single quotes ‘ and ’ appear as ‘ respectively ’. It seems like...
Hello Everyone,
Can someone please redirect me to some good references about the encoding and decoding in communication and different encoding techniques(unicode, base64, utf7) etc.
Thanks in advance,
Rupesh
...
Hi,
I am having a problem, pound signs and single quotes are being read from a file as �
My code is below:
$fh = fopen($_FILES['importFile']['tmp_name'], "r");
$contents = fread($fh, filesize($_FILES['importFile']['tmp_name']));
var_dump($contents);
Does anybody know how to fix this issue. I know its an encoding issue but unsure as...
Hello...
I have a problem
after i setup windows 7 all old projects in c# vs 2005, the letters that written in arabic changed to a strange language
and i changed the language's settings in control panel to arabic then the new projects passed but the old projects have the same problem
...
We have a CMS which has several thousand text/html files in it. It turns out that users have been uploading text/html files using various character encodings (utf-8,utf-8 w BOM, windows 1252, iso-8859-1).
When these files are read in and written to the response our CMS's framework forces a charset=UTF-8 on the response's content-type at...
What HTML text encoding exactly corresponds to MySQL charset "latin1"? ISO-8859-1, ISO-8859-2, ISO-8859-15, or another one?
...
What is the difference between charsets and character encoding? When i say i am using utf-8 encoding then what will be my charset? Does it take unicode as charset by default?
...
I am having an problem. First time working with a windows server, do you know if there is any problem in character coding? My document is set to content="text/html; charset=UTF-8" but it's giving me funny words... you can check it here. This site is a pure HTML with few includes but anything else is just HTML.
I can convert them to HTM...
I have the following code, from which you can see that, I use the same way to create the text in utf-8. The text shown between html tags are shown correctly. But the text shown as html tag attribute are shown in unicode. I'm positive that on the server side(PHP), both texts are treated in the same way and are encoded in utf-8.
Why the t...
I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly into an NSString.
Currently, I am getting results w/ Â for two-byte characters.
The XML I'm using (not created by me) starts with <?xml version="1.0" encoding="ISO-8859-1"?>
Here are the basic calls I'm using (omitted the NSThread calls).
NSString *xmlFi...
I own a website that was recently moved to a different server, now I can see some weird characters. Initially the website was coded with UTF-8 encoding. The weird characters disappears if I change the View > Character encoding to Western(8859-1) in my browser. Therefore, I changed the source of the website to use this Western one, but st...
I am trying to upload a pdf file using webservice api. But this api doesnot work for pdf file. it works fine for text file.when i try to upload a pdf file it give error as
Client-SOAP-ERROR: Encoding: string '%PDF-1.4 %\xc7...' is not a valid utf-8 string
So can we convert this pdf file into utf8 string.
i am using php as a scripting l...
I'm getting the error:
parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x6E 0x2C 0x20
When trying to process an XML response using simplexml_load_string from a 3rd party source. The raw XML response does declare the content type:
<?xml version="1.0" encoding="UTF-8"?>
Yet it seems that the XML is not really ...
I am working through the Django RSS reader project here.
The RSS feed will read something like "OKLAHOMA CITY (AP) — James Harden let". The RSS feed's encoding reads encoding="UTF-8" so I believe I am passing utf-8 to markdown in the code snippet below. The em dash is where it chokes.
I get the Django error of "'ascii' codec can'...
I've asked about strtolower function. But when using foreign characters it doesn't convert them into uppercase, so I must use:
mb_strtolower($a,"utf8");
But what can I do, if I want to use ucfirst() function? I haven't found any similar function, where I can set encoding type.
...