encoding

Is iso-8859-1 supported in Silverlight?

ぃ、小莉子 提交于 2020-01-25 10:07:47
问题 this is a simple question: does Silverlight (3.0?) support this kind of encoding? Encoding c = Encoding.GetEncoding("iso-8859-1"); Calling this function in Silverlight 3.0 generate the following error. 'ISO-8859-1' is not a supported encoding name. Parameter name: name My idea is to parse some file client side and then upload only those part needed for my application. I know that I could upload the whole file and parse it server side but right now could be better having the feature client

Copy audio codec throws exception when transcoding mxf video file

核能气质少年 提交于 2020-01-25 08:55:07
问题 We are using Azure Media Services (MES processor) to transcode video files of various input formats into mp4 output format. In case we have a mxf input file we receive the following exception when trying to transcode video (with option to copyAudio ) Azure Media ReEncode error message: An error has occurred. Stage: ApplyEncodeCommand. Code: 0x00000001. This exception message is fairly generic and doesn't give much insights about reasons for it. Any idea how to keep original audio, while only

Paste chinese symbols to oracle DB

我的未来我决定 提交于 2020-01-25 08:19:26
问题 I am trying to paste chinese symbols to oracle DB: NLS_NCHAR_CHARACTERSET = 'UTF8' NLS_LANGUAGE = 'RUSSIAN' NLS_TERRITORY = 'RUSSIA' NLS_CURRENCY = '?.' NLS_ISO_CURRENCY = 'RUSSIA' NLS_NUMERIC_CHARACTERS = '','' NLS_CHARACTERSET = 'CL8MSWIN1251' NLS_CALENDAR = 'GREGORIAN' NLS_DATE_FORMAT = 'DD.MM.RR' NLS_DATE_LANGUAGE = 'RUSSIAN' NLS_SORT = 'RUSSIAN' NLS_TIME_FORMAT = 'HH24:MI:SSXFF' NLS_TIMESTAMP_FORMAT = 'DD.MM.RR HH24:MI:SSXFF' NLS_TIME_TZ_FORMAT = 'HH24:MI:SSXFF TZR' NLS_TIMESTAMP_TZ

Bittrex websockets encoding method?

微笑、不失礼 提交于 2020-01-25 07:25:13
问题 It´s not a big deal to mimic the websocket connection made to bittrex from www, using chromes dev tools: GET https://socket.bittrex.com/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22c2%22%7D%5D&_=1524596108843 This return a token "ConnectionToken":"gbLsm8C6Jck1mQTTFjmuIv5qgUuMZz/kXU1s+fAnjnW qUFQocNBfp3VOrd/y0acxWL5Fv7MZ54heRddLYZS+EMhLnaPPQiSZblvgJPCbLKqZTIkb" That needs to be used with: wss://socket.bittrex.com/signalr/connect? transport=webSockets&clientProtocol

HTML Encoding with ASP.NET

泪湿孤枕 提交于 2020-01-25 04:24:05
问题 I am currently html encoding all user entered text before inserting/updating a db table record. The problem is that on any subsequent updates, the previously encoded string is reencoded. This endless loop is starting to eat up alot of column space in my tables. I am using parameterized queries for all sql statements but am wondering would it be safe to just let the .NET Framework handle this part without the HTML Encoding? 回答1: You should always HTML encode user data upon displaying , never

HexString to packed EBCDIC string

泄露秘密 提交于 2020-01-25 00:26:52
问题 I need to convert '767f440128e1a00a' hex data to packed EBCDIC string. I want all result outcomes into one string but python is giving Unicode error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 0: unexpected end of data s='767f440128e1a00a' output = [] DDF = [1] distance = 0 for y in range (1,len(s[2:])): for x in DDF: if s[2:][distance:x*2+distance]!='': output.append(s[2:][distance:x*2+distance]) else: continue distance += x*2 print(output) final=[] result=''

How to generate a Shift_JIS(SJIS) percent encoded string in JavaScript

走远了吗. 提交于 2020-01-24 22:57:29
问题 I'm new to both JavaScript and Google Apps Script and having a problem to convert texts written in a cell to the Shift-JIS (SJIS) encoded letters. For example, the Japanese string "あいう" should be encoded as "%82%A0%82%A2%82%A4" not as "%E3%81%82%E3%81%84%E3%81%86" which is UTF-8 encoded. I tried EncodingJS and the built-in urlencode() function but it both returns the UTF-8 encoded one. Would any one tell me how to get the SJIS-encoded letters properly in GAS? Thank you. 回答1: You want to do

Text utf-8 in console works in eclipse, but fails to work with an exported jar

六眼飞鱼酱① 提交于 2020-01-24 20:59:34
问题 I'm developping a java application, and I get some problems with Output, files, console, So about the files I figure out how to right using utf-8, but I can't figure out to set the encoding in the console. This is a simple test that I use it in my eclipse, then I generate a jar, and I execute it using a .bat file. public class Test { public static void main(String[] args) { System.out.println("Initialisée la procédure"); } } This is the result when I execute my Jar using this bat file: "C:

Greek text on android utf8 not show properly

╄→гoц情女王★ 提交于 2020-01-24 20:36:28
问题 I'm making app with Greek text and data but not every letter is shown. Letter which is not shown not make ? mark but just white space. File encoding is set to utf8 and in build.gradle , I have set compile for utf8 . For example: (agapó) ἀγαπῶ (ἀγαπᾶν) in listview is shown as (agapó) γαπ (γαπ ν) . Even button on XML not shown properly same problem. The screenshot: private void inicialization() { sound = (ImageView) findViewById(R.id.sound); home = (ImageView) findViewById(R.id.home); home

VBA convert a binary image to a base64 encoded string for a webpage

痴心易碎 提交于 2020-01-24 20:12:14
问题 I am trying to read in a JPG file and convert the file to a base64 encoded string that can be used as an embedded jpeg on a web page. I found two functions on the web for base64 encoding/decoding in VBA that appear to be well-accepted. The encode/decode process yields my original binary string, so the functions appear to be at least somewhat correct. However the base64 string I am getting is no where near what I get when I use an online tool to convert my image to base64. The base64 string