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

Custom converter to add euro sign fails #262

Open
manuelarte opened this issue Sep 22, 2023 · 1 comment
Open

Custom converter to add euro sign fails #262

manuelarte opened this issue Sep 22, 2023 · 1 comment

Comments

@manuelarte
Copy link

manuelarte commented Sep 22, 2023

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
Copy link

@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.?

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

2 participants