Repository

VIDNA

An IDNA string library for converting internationalized domain names written in V

Installation

You can install this package either from [VPM] or from GitHub:

v install fleximus.idna
v install --git https://github.com/fleximus/vidna

Usage

To use idna in order to convert international strings

import fleximus.idna

fn main() {
    input := 'café'
    conv := idna.to_ascii(input)
    conv2 := idna.to_unicode(conv)

    println('${input} converts to ${conv} and back again to ${conv2}')
}

License

MIT

About

IDN string library for converting internationalized domain names

0
1
last Jun 8

Author

fleximus