Skip to content

fix error message encoding#13

Open
changweige wants to merge 1 commit intoyetone:mainfrom
changweige:fix-err-msg-encoding
Open

fix error message encoding#13
changweige wants to merge 1 commit intoyetone:mainfrom
changweige:fix-err-msg-encoding

Conversation

@changweige
Copy link

My macOS' language is set to Chinese, so the osascript will throw error to the terminal or other log sink in Chinese. We have to appropriately encode the error message to make it readable :-)

Otherwise, the error message looks like

error occurred while getting the selected text, error: 507:541: execution error: �System Events����个�误��osascript���许����� (1002)

Signed-off-by: Changwei Ge <gechangwei@live.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant