gocarina / gocsv

The GoCSV package aims to provide easy CSV serialization and deserialization to the golang programming language
MIT License
1.95k stars 243 forks source link

Custom converter to add euro sign fails #262

Open manuelarte opened 1 year ago

manuelarte commented 1 year ago

Hi,

I created my own float type and a custom converter to add the euro sign before the value:

type EuroMoney float64

func (euroMoney *EuroMoney) MarshalCSV() (string, error) {
    return fmt.Sprintf("€ %v", *euroMoney), nil
}

But I get this in my csv file:

€ 0.12

Why the euro symbol is not shown?

shigetaichi commented 11 months ago

@manuelarte Do you have more detailed information on the circumstances under which the above results were obtained? ex: What writer was used, what was the character encoding, etc.?