Skip to content

ASCII translit not working #11

@pierrre

Description

@pierrre

My Go code:

package main

import (
    "fmt"
    iconv "github.com/djimenez/iconv-go"
)

func main() {
    su := "aé"
    sa, err := iconv.ConvertString(su, "UTF-8", "ASCII//TRANSLIT")
    if err != nil {
        panic(err)
    }
    fmt.Println(sa)
}

Result:

a?

Expected result:

ae

Native iconv command:

echo "aé" | iconv -f "UTF-8" -t "ASCII//TRANSLIT"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions