invalid byte 2 of 2-byte UTF-8 sequence
I am trying to parse an XML file with , but ran into an error message "invalid byte 2 of 2-byte UTF-8 sequence. Does anybody know what caused this problem? Thanks. ...
I am trying to parse an XML file with , but ran into an error message "invalid byte 2 of 2-byte UTF-8 sequence. Does anybody know what caused this problem? Thanks. ...
I am running a Java application on a Solaris10 with Chinese. Now there are some files in a directory with chinese filenames. When I do files = new File(dir).list() where "dir" is the parent directory containing that chinese file, I get the result filename files[0] as ?????(some junk characters). Now the deal is that my programs file.enc...
So i see a lot of software that has mp3 encoding and/or decoding and I'm pretty sure that they don't pay the royalties to Thomson as required here: http://mp3licensing.com/royalty/software.html So I'm wondering, is there a loophole that i don't know about? Is there a library that doesn't require any royalties/licensing fees? ...
Wav files support different encodings, including mp3. Is there a C/C++ library that would produce mp3-encoded wav files from uncompressed wav? If not, what would be the best place to start to implement one? ...
I'm playing with the flickr api and php. I want to pass some information from PHP to Javascript through Ajax. I have the following code: json_encode($pics); which results in the following example JSON string: [{"id":"4363603591","title":"blue, white and red...another seattle view","date_faved":"1266379499"},{"id":"4004908219","titl...
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...
Given a path to a REST style URL: http://site.com/rest/customer/foo/robot/bar/1 When you GET it, it returns a PDF to the foo-customer containing page 1 of the bar-URL. While foo is the name of the customer bar is an URL. The URL usually contains slashes and might look something like this: http://anothersite.com/interestingarticle.ht...
In my web page a hyphen symbol shows up as \–. I don't know how to resolve this problem, can you help me? ...
I am trying to create a text file using VB.Net with UTF8 encoding, without BOM. Can anybody help me, how to do this? I can write file with UTF8 encoding but, how to remove Byte Order Mark from it? Thanks in Advance. edit1: I have tried code like this; Dim utf8 As New UTF8Encoding() Dim utf8EmitBOM As New UTF8Encoding(True) ...
Hey guys, I am trying to make an xml file to export my data from my database to my iphone. Each time I create a new post, I need to execute a php file to create a xml file containing the latest post ;) Okay so far ? :D Here is current php code ... but my nsxmlparser gives me an error code (33 - String is not started). I have no idea w...
I'm trying to read in an image URL. As mentioned in the java documentation, I tried converting the URL to URI by String imageURL = "http://www.shefinds.com/files/Christian-Louboutin-Décolleté-100-pumps.jpg"; URL url = new URL(imageURL); url = new URI(url.getProtocol(), url.getHost(), url.getFile(), null).toURL(); URLConnection conn = ...
So I have a string that is in another language, most of it looks great, but parts of it is encoded incorrectly. How do I convert the literal string \u0026#39;n into its unicode(?) equivalent in PHP? ...
It seems that the encoding on my project is changed from utf-8 to windows-1252 when I clone it from github to my windows vista pc. Any ideas of how I can make it not do this? ...
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 ...
I am using .NET SmtpClient to send e-mail where the subject might contain characters outside of the ASCII range. The RFC 2047 defines how e-mail text should be encoded when it contains special characters. Here is an example of a subject in an e-mail header: Subject: Votre enregistrement numéro 123 This should become, after encoding to...
Hi, On OS-X (PHP5.2.11) I have a file: siësta.doc (and thousand other with Unicode filenames) and I want to convert the file names to a web-consumable format (a-zA-Z0-9.). If I hardcode the file name above I can do the right conversion: <?php $file = 'siësta.doc'; echo preg_replace("/[^a-zA-Z0-9.]/u", '_', $file); // Output: si_s...
Hi, i need to convert a Utf-16BE in ISO-8859-1 in PHP (i'm not an expert in encoding so i don't know if Utf-16 and Utf-16BE are the same thing). I've read somewhere to use the mb_convert_encoding function but i haven't that function because i don't have the multibyte extension installed. So do you know an alternative method to do this? ...
There is a page on our server that's reachable via two different URLs. http://www.spotlight.com/6213-5613-0721 http://www.spotlight.com/interactive/cv/1/M103546.html There's classic ASP behind the scenes, and both of those URLs actually do a Server.Transfer to the same underlying ASP page. The accents in the name at the top of the pa...
I have a project using libavcodec (ffmpeg). I'm using it to encode MPEG-2 video at 4:2:2 Profile, Main Level. I have the pixel format PIX_FMT_YUV422P selected in the AVCodecContext, however the video output I'm getting has all the colours wrong, and looks to me like the encoder is incorrectly reading the buffers as though it thinks it is...
From the answers to this question it appears there's a file somewhere on our server that's been saved with the wrong encoding. I've seen this happen before - most often when pasting from Word into Visual Studio, when "smart quotes" can interfere with Visual Studio's encoding settings when saving the file. Thing is - the problem I'm hav...