Alle Neu

user:thomas Gists erstellt von Nutzer

title:mygist Gists mit Titel

description:sync gists with given description

filename:myfile.txt Gists mit Dateinamen

extension:yml Gists mit Dateiendung

language:go Gists in Sprache

topic:homelab gists zum gegebenen Thema

all:systemctl search all fields

Anmelden

Alle Neu Anmelden

All gists matching topic big5

Neueste erstellt
Älteste erstellt
Neueste bearbeitet
Älteste bearbeitet

jetsung / gbkbig5.go

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 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)
Neuer Älter

Powered by Opengist ⋅ Load: 46ms⋅

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