qcz / vscode-text-power-tools

Text Power Tools extension for VS Code
https://marketplace.visualstudio.com/items?itemName=qcz.text-power-tools
MIT License
95 stars 14 forks source link

Encode/Decode IDNA (Internationalized Domain Names in Applications) #88

Closed mercurykd closed 2 months ago

mercurykd commented 5 months ago

add support punycode, like https://github.com/kjd/idna, https://github.com/peteroupc/IdnaJS

milkchug2015 commented 2 months ago

I'm not sure if I should open a new issue, but I want to add in that single quotes should be encoded also. In my case, I use Salesforce's API and if the single quotes in the query aren't encoded, it fails.

qcz commented 2 months ago

Available in 1.49.0.

@milkchug2015 AFAIK punycode does not encode single quotes, neither does any punycode converter I could find online.