Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

something wrong when print json.dumps result with ensure_ascii=False #240

Closed
Sanster opened this issue Feb 19, 2021 · 1 comment
Closed
Assignees
Labels
wontfix This will not be worked on

Comments

@Sanster
Copy link

Sanster commented Feb 19, 2021

script command:

#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Prettify JSON
# @raycast.mode fullOutput
# @raycast.packageName Developer Utilities

# Optional parameters:
# @raycast.icon 馃捇

# Documentation:
# @raycast.description Pretty prints the JSON currently in the clipboard.

pbpaste | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(json.dumps(obj,indent=2,ensure_ascii=False))'

Input json string

{"text":"浣犲ソ"}

Output in iTerm2:
image

Output in Raycast with ensure_ascii=False
image

Output in Raycast with ensure_ascii=True
image

@Sanster Sanster changed the title Prettify json not work for ensure_ascii=False output something wrong when print json.dumps result with ensure_ascii=False Feb 19, 2021
@stale
Copy link

stale bot commented Mar 21, 2021

This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 21, 2021
@stale stale bot closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants