Hi when I do this:
using (XmlWriter xw = new XmlTextWriter(fcService.SetCIRIFilePath(), Encoding.UTF8))
{
debts.Save(xw);
xw.Flush();
}
My debts object is a XDocument object which I populated using LINQ to XML. However when I save it, it looks fine in notepad, but when opened with a binary/hex e...
Part of our web app has a little Ajax method that will load a page in an iFrame or allow you to download it.
We store a bunch of search results from search engines and we have script opens the file containing our info and the search html. We strip out the stuff we don't need from the top (our info) and then we serve that up either by ec...
I have a scraper that is collecting some data from elsewhere that I have no control over. The source data does all sorts of interesting Unicode characters but it converts them to a pretty unhelpful format, so
\u00e4
for a small 'a' with umlaut (sans the double quotes that I think are supposed to be there)*. of course this gets render...
I found this tutorial about ffmpeg the thing i do not get is how to encode video.
can any one, please provide a tutorial.. with explanations for that? (not that i dont get this official one but i'd love to see more comments)
...
Hi Guys, I've been searching for this one and couldn't find it, although it seems simple. I need to send in a ucs2 hex string in the url, and I don't know how to convert a python string to be ucs2 hex. Any thoughts?
...
Hello,
I am trying to get a WCF .Net 4.0 client to work with a NuSOAP/0.7.2 (1.94) Web Service. First thing, the web service is not based on current SOA standards so I had to create a custom encoder to handle the ISO-8859-1 message encoding. When I get the response, WCF throws the following exception
"Error in deserializing body of ...
Hi,
While i send mail using javamail API i set the subject likr this
msg.setSubject(subject,charset);
But this setsubject method encode subject only in Quoted-printable encoding.
But i want to setsubject in base64 encoding.
For Example:
Expected result: =?big5?B?............?=
result obtained: =?big5?Q?.............?=
please hel...
Question: how to tell Nokogiri when parsing a document not to convert it a different encoding (in my case not to convert to to anything else)
I have a file with the following contents:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<span>£</span>
</body>
</html>
I p...
I'm having some strange issues with decoding an XML snippet, contained with a cookie, with PHP's base64_decode function:
In our PHPUnit tests, we can decode the XML and echo it out to the console and it prints XML as you would expect (all unit tests pass as well).
As soon as we try running the same code in the browser, the decoded XML ...
I have a Rails project with lots and lots of cyrillic strings in it.
It worked fine on Ruby 1.8, but Ruby 1.9 recognizes all source files as US-ASCII-encoded until you provide an # encoding: utf-8 comment on top of each and every source file in the project. Obviously the files don't parse as US-ASCII.
Is there a simpler way to say, li...
I'm trying to look at a file that was saved without a BOM as wchar text. In my gVim window I see:
T^@E^@X^@T^@H^@E^@R^@
...which is really annoying. I want to edit this file as a regular text document, and I'd like vim to save it in the same format. I've tried doing :set encoding=utf-16 (and other variations such as utf-16le, ucs-2, a...
I got a string from web page title, and show it in winform client application, but the encoding is not right, how to convert it to the right one? Below is my code snippet to convert the title string to system default encoding.
//HAP means HtmlAgilityPack, an HTML parse module.
var hw = new HAP.HtmlWeb();
var doc = hw.Load(url); //Any u...
I would like to be able to take a stream of 1's and 0's and convert it to a format that jpg can read, I.E. suppose I wrote a program and compiled and got an exe, then took and ran the 1's and 0's from the exe through said program, it would produce a .jpg. Any tips on what I need to do? I am hoping it's not as difficult as I'm suspecting ...
we have a wep application, when using chinese words in GET query string can not get correct
parameter on server side but in POST data we can get correct parameter on server side.
server is Tomcat. on server side we use GBK encoding to get HTTP parameters
if I convert encoding of parameters in in query string from ISO8859-1 to GBK it's r...
I have a method that takes a bitmap image: foo(Bitmap bmp){}
Im calling bmp.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams);
Essentially encoder is set with the following pseudo code:
foreach (var _encoder in ImageCodecInfo.GetImageEncoders())
{
if (_encoder.mimetype=="image/png")
{
encoder = _encod...
I have a multi language website which requires both English language and Azeri characters to be input via a web form and inserted into a MySQL database table.
Displaying them in HTML is fine, I can work with the page encoding to get hard coded text to display. Now the site requires developing and any static text will be pulled from the ...
Hi.
Is it possible to set the content-length header and also use chunked transfer encoding? and does doing so solve the problem of not knowing the length of the response at the client side when using chunked?
the scenario I'm thinking about is when you have a large file to transfer and there's no problem in determining its size, but it...
I receive an XML file with encoding "ISO-8859-1" (Latin-1)
Within the file (among other tags) I have <OtherText>Example "content" And ─</OtherText>
Now for some reason when I load this into XMLTextReader and do a "XmlReader.Value" to return the value, it returns: "content" And ─
This then, when confronted with a datab...
Hi all,
I'm usually a LAMP developer, but some .NET work has arrived on my plate and I'm a bit stumped.
If I run the following code:
<% poundsign = "£" %>
<% Response.Write poundsign %>
<% Response.Write "£" %>
… nothing is displayed. However, outside of the <% %> tags (ie in the HTML) £ displays correctly.
I have no trouble displa...
I'm currently doing this to replace extended-ascii characters with their HTML-entity-number equivalents:
s.encode('ascii', 'xmlcharrefreplace')
What I would like to do is convert to the HTML-entity-name equivalent (i.e. © instead of ©). This small program below shows what I'm trying to do that is failing. Is there a way to ...