Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

txtconv

Go Fyne License: MIT

跨平台文本文件编码转换工具。自动检测文件编码,一键转换为 UTF-8。

基于 Go + Fyne 构建,支持 Linux / Windows / Android

功能

  • 自动检测文件编码(GBK、GB18030、Shift_JIS、Big5、ISO-8859 等)
  • 转换后实时预览 UTF-8 内容
  • 另存为 UTF-8 编码文件,默认文件名保留原名并追加 (utf8) 后缀
  • 支持 .txt .csv .log .md .json .xml .html 等格式

快速开始

git clone https://github.com/huxy/txtconv.git
cd txtconv
make linux   # 或 make windows / make android

编译

命令 说明 额外依赖
make linux Linux 桌面版 libgl-dev, libx11-dev 等
make windows Windows 桌面版 mingw-w64 交叉编译器
make android Android APK Android SDK + NDK, fyne CLI
make clean 清理构建产物 -

系统依赖

Linux (Ubuntu/Debian)

sudo apt install -y \
  libgl-dev libx11-dev libxrandr-dev libxcursor-dev \
  libxinerama-dev libxi-dev libxxf86vm-dev pkg-config

Windows

需要 MinGW-w64 提供 GCC:

scoop install mingw
#
choco install mingw

Android

  1. 安装 Android Studio,在 SDK Manager 中勾选 NDK
  2. 安装 fyne CLI:
    go install fyne.io/fyne/v2/cmd/fyne@latest
  3. 设置环境变量:
    ANDROID_HOME = <Android SDK 路径>
    ANDROID_NDK_HOME = <Android SDK 路径>/ndk/<版本号>
    

技术栈

组件 用途
Fyne v2.7.3 跨平台 GUI 框架
saintfish/chardet 字符编码自动检测
golang.org/x/text 编码转换

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages