File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2+ process . stdout . isTTY && process . stdout . setEncoding ( 'utf8' )
3+ process . stderr . isTTY && process . stderr . setEncoding ( 'utf8' )
24import { execSync } from 'child_process'
35import fs from 'fs'
46
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2-
2+ process . stdout . isTTY && process . stdout . setEncoding ( 'utf8' )
3+ process . stderr . isTTY && process . stderr . setEncoding ( 'utf8' )
34console . log ( '\n🌍 HumanOS 零注册收录平台大全' )
45console . log ( '=' . repeat ( 60 ) )
56console . log ( '\n💯 这些平台 100% 不需要登录/注册!完全自动爬取GitHub' )
Original file line number Diff line number Diff line change 1+ # PowerShell UTF-8 编码修复脚本
2+ # 执行: .\scripts\fix-encoding.ps1
3+
4+ Write-Host " `n 🔧 PowerShell UTF-8 编码修复工具" - ForegroundColor Cyan
5+ Write-Host " =" .PadRight(50 , " =" ) - ForegroundColor Cyan
6+
7+ $OutputEncoding = [System.Text.Encoding ]::UTF8
8+ [Console ]::OutputEncoding = [System.Text.Encoding ]::UTF8
9+ [Console ]::InputEncoding = [System.Text.Encoding ]::UTF8
10+
11+ $env: LC_ALL = ' en_US.UTF-8'
12+ $env: LANG = ' en_US.UTF-8'
13+
14+ Write-Host " `n ✅ 终端编码已设置为 UTF-8" - ForegroundColor Green
15+ Write-Host " `n 📋 验证输出:" - ForegroundColor Yellow
16+
17+ Write-Host " 🌍 中文 emoji 测试"
18+ Write-Host " ✅ 对号 ❌ 错号"
19+ Write-Host " 🚀 🔥 ⭐ 💡 🎯"
20+ Write-Host " 情商测评 人格测试 开源项目"
21+
22+ Write-Host " `n 💡 永久生效方法:" - ForegroundColor Cyan
23+ Write-Host " 把下面代码加入你的 PowerShell $PROFILE :`n "
24+ Write-Host ' $OutputEncoding = [System.Text.Encoding]::UTF8'
25+ Write-Host ' [Console]::OutputEncoding = [System.Text.Encoding]::UTF8'
26+ Write-Host ' [Console]::InputEncoding = [System.Text.Encoding]::UTF8'
27+
28+ Write-Host " `n 🎉 编码修复完成!`n " - ForegroundColor Green
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2-
2+ process . stdout . isTTY && process . stdout . setEncoding ( 'utf8' )
3+ process . stderr . isTTY && process . stderr . setEncoding ( 'utf8' )
34console . log ( '\n🌍 HumanOS 开源生态收录系统' )
45console . log ( '=' . repeat ( 50 ) )
56
You can’t perform that action at this time.
0 commit comments