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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not UTF8-safe #1

Closed
schochastics opened this issue Sep 22, 2023 · 2 comments
Closed

not UTF8-safe #1

schochastics opened this issue Sep 22, 2023 · 2 comments

Comments

@schochastics
Copy link
Member

adaR::ada_url_parse("https://www.hk01.com/zone/1/港聞")
#> $href
#> [1] "https://www.hk01.com/zone/1/%E6%B8"
#>
#> $protocol
#> [1] "https:"
#>
#> $username
#> [1] ""
#>
#> $password
#> [1] ""
#>
#> $host
#> [1] "www.hk01.com"
#>
#> $hostname
#> [1] "www.hk01.com"
#>
#> $port
#> [1] ""
#>
#> $pathname
#> [1] "/zone/1/%E6%B8"
#>
#> $search
#> [1] ""
#>
#> $hash
#> [1] ""

Created on 2023-09-22 with reprex v2.0.2

schochastics added a commit that referenced this issue Sep 22, 2023
@schochastics
Copy link
Member Author

schochastics commented Sep 22, 2023

using nchar(x,type="bytes") paired with URLdecode seems to do the trick but needs more testing

@schochastics
Copy link
Member Author

closing for now

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

No branches or pull requests

1 participant