brew untap homebrew/php
brew untap exolnet/deprecated
brew cleanup
brew tap shivammathur/php
brew install shivammathur/php/php@7.1
brew services restart shivammathur/php/php@7.1
brew link --overwrite --force shivammathur/php/php@7.1
brew untap homebrew/php
brew untap exolnet/deprecated
brew cleanup
brew tap shivammathur/php
brew install shivammathur/php/php@7.1
brew services restart shivammathur/php/php@7.1
brew link --overwrite --force shivammathur/php/php@7.1
git diff 1a5a658e 64ee6ed3 --name-only | xargs zip update.zip
// 使用默认字符编码识别可能导致识别错误
//$encoding = mb_detect_encoding($string, mb_detect_order(), true);
// 默认mb_detect_order() => ASCII,UTF-8
// 手动指定识别顺序
$encoding = mb_detect_encoding($string, 'GB2312,GBK,ASCII,UTF-8,ISO-8859-15', true);
if ($encoding) {
$string = mb_convert_encoding($string, "UTF-8", $encoding);
} else if (mb_detect_encoding($string, 'GB2312', true)) {
$string = mb_convert_encoding($string, "UTF-8", 'GB2312');
} else {
$string = mb_convert_encoding($string, "UTF-8", 'GBK');
}
# 全局安装iconfont转换工具
npm install -g iconfont-tools
# 进入iconfont解压根目录
cd iconfont
# 执行
iconfont-tools
只使用 iconfont-weapp-icon.css
文件
需要多色字体混合的, 按需把单色字体class改为原Unicode即可
下载Flutter
https://flutter.cn/docs/get-started/install/macos
cd ~/development
unzip ~/Downloads/flutter_macos_2.10.0-stable.zip
vi ~/.zshrc
# 在最后一行写入
export PATH="$PATH:$HOME/development/flutter/bin"
source $HOME/.zshrc
执行flutter doctor
进行检查