【发布时间】:2020-03-14 22:23:12
【问题描述】:
我想为我在 Xmonad 中的工作区使用来自 Nerd Fonts 的 Unicode 字符。
myWorkspaces = ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
供参考:
但是,我在编译时收到以下错误:
xmonad.hs:191:13: error:
lexical error in string/character literal at character '\62057'
|
191 | ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
| ^
Please check the file for errors.
Warning: Missing charsets in String to FontSet conversion
有没有机会使用全套 nerd fonts unicode 字符?我看到其他人在 their config 中使用了 unicode 的子集。
【问题讨论】:
-
源文件的编码是什么?您是否尝试过使用转义序列指定符号?
-
@max630,我正在使用
file -i xmonad.hs: xmonad.hs: text/plain; charset=utf-8。转义序列是什么?