Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

description:sync gists with given description

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab Gist con l'argomento dato

all:systemctl search all fields

Entra

Tutti Nuovi Entra

Tutti i gist corrispondenti all'argomento big5

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento

jetsung / gbkbig5.go

0 mi piace
0 forks
1 files
Ultima volta attivo 1 month ago
Golang GBK Big5 from/to UTF-8 转换 转自:https://gist.github.com/zhang0098/c691e1da5bbdc7f41ca5
big5 gbk go
1 import (
2 "bytes"
3 "io/ioutil"
4 "golang.org/x/text/encoding/traditionalchinese"
5 "golang.org/x/text/encoding/simplifiedchinese"
6 "golang.org/x/text/transform"
7 )
8 //convert GBK to UTF-8
9 func Decodegbk(s []byte) ([]byte, error) {
10 I := bytes.NewReader(s)
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 44ms⋅

Italiano
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 爱开发 ⋅ 爱开发社区