decoding
java.nio.charset.MalformedInputException when reading a stream
I use the following code to read data. It throws java.nio.charset.MalformedInputException. The file I can open normally, but it does include non-ascii chars. Anyway I can fix this problem?[详细]
2023-03-24 05:12 分类:问答Detect (or best guess of) incoming string encoding in Java
I was wondering if there are known methods to 开发者_高级运维detect (or give a best guess of) the encoding of a particular string in Java.[详细]
2023-03-22 14:58 分类:问答Decoding a base64 encoded binary string in C
I am trying to get my decoder code to work. I am using the example 64-bit encoded string from wikipedia, trying to reproduce the text they encoded.[详细]
2023-03-21 03:14 分类:问答Java: prevent auto-decoding of encoded String
I have an encoded String like this: 17298457,abcdef/17298529,ghijklm/17298562,opq%2Frstu and want to split it on the \"/\".[详细]
2023-03-19 20:32 分类:问答Reading lines of text in unknown encoding
I need to read a text file line by line, and apply to each of them several CharsetDecoders, in order. Actually, I first try to decode line as if it\'s an UTF8-encoded one, and fallback to one-byte cha[详细]
2023-03-18 10:58 分类:问答appengine base64 encoded string is different from my local machine's
This is the code: >>> import base64 >>> id = 1 >>> key = 开发者_高级运维\"secret key very long\"[详细]
2023-03-18 04:59 分类:问答Delphi: TStringList does not understand BOM?
Does TStringList not understand BOM? Tf1 := TFileStream.Create(LIGALOG+\'liga.log\',fmOpenRead or fmShareDenyNone);[详细]
2023-03-13 15:53 分类:问答How to decode Unicode escape sequences like "\u00ed" to proper UTF-8 encoded characters?
Is there a function in PHP that can decode Unicode escape sequen开发者_StackOverflowces like \"\\u00ed\" to \"í\" and all other similar occurrences?[详细]
2023-03-13 05:52 分类:问答javax.xml.bind's Base64 encoder/decoder eats last two characters of string
I need to convert some strings using Base64 encoding, and was delighted to see that I didn\'t have to roll my own converter--Java provides one with javax.xml.bind.DataConverter. However, it has some p[详细]
2023-03-12 01:08 分类:问答How to decode nvarchar to text (SQL Server 2008 R2)?
I have a SQL Server 2008 R2 table with nvarchar(4000) field. Data that stores this table look like \'696D616765206D61726B65643A5472\'[详细]
2023-03-11 18:43 分类:问答