We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ref: timohirt/terraform-provider-hetznerdns#28
We should add an provider function to convert domains into punycode (IDN).
Provider functions are part of the framework (https://developer.hashicorp.com/terraform/plugin/framework/functions) and require terraform 1.8
The text was updated successfully, but these errors were encountered:
A simple example for this would be
package main import ( "fmt" "golang.org/x/net/idna" ) var p *idna.Profile func main() { p = idna.New() var url = "🍻über🔥.com" ascii, err := p.ToASCII(url) if err != nil { fmt.Println(err) return } unicode, err := p.ToUnicode(ascii) if err != nil { fmt.Println(err) return } fmt.Println(ascii) fmt.Println(unicode) }
which will output
xn--ber-goa88194dfdc.com 🍻über🔥.com
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Ref: timohirt/terraform-provider-hetznerdns#28
We should add an provider function to convert domains into punycode (IDN).
Provider functions are part of the framework (https://developer.hashicorp.com/terraform/plugin/framework/functions) and require terraform 1.8
The text was updated successfully, but these errors were encountered: