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>...
Hi all,
I'm a noob at C++ and MySQL and I only want to retreive a xml file stored as a longblob in MySQL. I did a SELECT query to get the content and after I store this content in a xml file with std::ofstream. With this i get:
<?xml version="1.0" encoding="UTF-16"?> <AnObject noNamespaceSchemaLocation...
instead of this:
<?xml vers...
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 ...
I'm trying to read some text from an html file, modify it in a specific way and write the result in a new html file. But the problem is that the text is not written in English and as a result some characters are replaced with black and white "?" marks. In my html file, I have < meta http-equiv="Content-Type" content="text/html; charset...
Im creating a PDF document with ezPDF (version 0.9).
The data I insert in the document is from a MySQL database with encoding: "latin1_swedish_ci".
Special characters (especially ö, which matters the most now) are displayed like Greek pre historical algabra (literal) in the document.
What I have tried so far:
iconv();
htmlspecialchar...
I'm trying to save some values from a form in CakePHP into a MySQL database and when the values go into the database they are getting html encoded.
So something like (#45) gets stored in the database as (#45) and then when someone tries to go back and edit the form they see all the extra characters.
I've tried setting the enc...
I created a simple comment wall that submits using ajax.
Using javascript i collect user input:
var sharetxt = encodeURIComponent(document.getElementById("cw_share_txt").value);
then pass it to a php page, on the php page, i collect the passed data:
$text=nl2br(htmlentities(trim(utf8_decode($_POST["txt"]))));
Encoding of the php ...
Please i have asked this question before, hopin to get responses this time
I created a simple comment wall that submits using ajax.
Using javascript i collect user input:
var sharetxt = encodeURIComponent(document.getElementById("cw_share_txt").value);
then pass it to a php page, on the php page, i collect the passed data:
$text=n...
I'm trying to replicate some C# code in PHP5 and am having some difficulties.
The C# code is as following, and it is important to note that it cannot be changed:
string s = strToHash;
UnicodeEncoding encoding = new UnicodeEncoding();
byte[] bytes = encoding.GetBytes(s);
SHA1Managed managed = new SHA1Managed();
bytes = encoding.Get...
How should I handle this situation?
I set the Encoding to UTF8 but I still get errors...
I create that string (that I set to the WebBrowser.DocumentText) from a MemoryStream object and I'm ending it like this:
Byte[] buffer = new Byte[ms.Length];
buffer = ms.ToArray();
return System.Text.Encoding.UTF8.GetString(buffer);
What a...
Hi !
I have a problem with Tapestry form.
My XML database is very sensible with encoding, and need utf-8.
When i put the char 'à' in my form, tapestry receive 'Ó' and my core get an error : Invalid byte 2 of 3-byte UTF-8 sequence.
I haven't the problem in eclipse with local default configuration for tomcat.
But whatever the tomcat co...
Currently, I'm when passing around a cursor string in a URL, and it looks very ugly. I was wondering if there was a way to shorten these? I was thinking I could encode it & decode it somehow, but I don't really know where to start looking for information on this.
The cursor string is a base 64 encoded string. Any way to shorten it witho...
I need your help in order to send email message that includes text in Greek, from within R, using the function sendmail {sendmailR}.
I tried using the function iconv, like that but it didn't work
subject <- iconv("text in greek", to = "CP1253")
sendmail(from, to, subject, msg, control=list(smtpServer="blabla"))
The mail arrives immed...
Hoo boy. A weird one I guess!
getting input from a form, I want to make sure there are no western characters, punctuation or numbers before sending it to a php script for creating some xml...
from form name = "a"
$('form').submit(function() {
text = ($(this).serialize());
text = text.substr(2,text.length)
text = text.replace(/[^\u3...
Hi, I would like to know how to implement a chunked HTML document. How it looks? Can anyone post an example of an chunked HTML ducument, because I can't understand how to prepare my HTML document for using the Chunked transfer encoding.
Thansk!
Cheers
Nik
...
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...
I was going on a binge to increase speed of my website and optimize what I can within reason, one thing I wanted to go into was editing some Apache/MySQL configurations so I can decrease page loading time, I wanted to try something with .htaccess but I hate 500 errors that ensues, as I got PHP I'm wishing to do GZIP compression there.
W...
I'm running into a bit of a weird issue. Whenever I create a new text file in my iOS application, I set its encoding to be NSUTF8StringEncoding. If I edit the file and input any characters with diacritics and save the changes, the diacritics render properly in some applications such as BBEdit, TextMate, cat and vi but not in others suc...
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?
...
Hi,
I used Python's imaplib to pull mail from a gmail account... but I got an email with this confusing text body:
> RGF0ZSBldCBoZXVyZTogICAgICAgICAgICAgICAgICAgICAgICAgICAyMi8wOC8yMDEwIDE0
> OjMzOjAzIEdNVCBVbmtub3duDQpQcsOpbm9tOiAgICAgICAgICAgICAgICAgICAgICAgICAg
> ICAgICAgICAgamFjaW50bw0KTm9tOiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI...