Reference Citations - HerongYang.com - v2.95, by Herong Yang
nsIConverterOutputStream handling GB2312 characters
'Herong's Tutorial Notes on GB2312 Character Set' book was cited in a MozillaZine forum post in 2012.
The Herong's Tutorial Notes on GB2312 Character Set book was cited in a MozillaZine forum post in 2012.
Subject: nsIConverterOutputStream handling GB2312 characters Date: March 25, 2012 Author: morat Source: http://forums.mozillazine.org/viewtopic.php?f=19&t=2447729 I cannot get the GB2312 converter to use the replacement character. I guess a bug. var data = "\u0080"; // invalid var file = Components. classes["@mozilla.org/file/directory_service;1"]. getService(Components.interfaces.nsIProperties). get("ProfD", Components.interfaces.nsIFile); file.append("test.txt"); var stream = Components. classes["@mozilla.org/network/file-output-stream;1"]. createInstance(Components.interfaces.nsIFileOutputStream); var converter = Components. classes["@mozilla.org/intl/converter-output-stream;1"]. createInstance(Components.interfaces.nsIConverterOutputStream); try { stream.init(file, 0x02|0x08|0x10, parseInt("666", 8), 0); converter.init(stream, "ISO-8859-1", 0, 0x0000); // converter.init(stream, "ISO-8859-1", 0, 0x0041); // converter.init(stream, "GB2312", 0, 0x0000); // converter.init(stream, "GB2312", 0, 0x0041); converter.writeString(data); } finally { converter.close(); stream.close(); } Tutorial Notes on GB2312 https://www.herongyang.com/gb2312/
Table of Contents
bikin website dalam bahasa cina dengan php
►nsIConverterOutputStream handling GB2312 characters
AbstractMethodError while calling PreparedStatement.setBinaryStream()
how to invoke web service without generating a client
Sample program to test SSL Connection with certicates
How to know KeyManager given a keystore
once again: classpath and ojdbc14.jar
12c... webtier up, Oracle managment server down
Problems with class not found exception
Spring Projects > Roo > Issue with Chinese characters
Monkey Programming/Unsigned Shift Right
Unable to get issuer certificate
How to convert keystore (from native android project) to .p12 to use with AIR project?
Installing JDBC drivers ojdbc14.jar
Quickly view the threads of your blocked Ruby application with JStack
android verify signature of file with .der public key