0
Good,
I use the following code to convert a numeric value according to the user culture:
value="@(Model.KnowAcquisition.Cost.HasValue ? Model.KnowAcquisition.Cost.Value.ToString("n2", CultureInfo.CurrentCulture).ToString() : string.Empty)" />
However, C# turns into this:
<input type="text" class="famo-input famo-text-10" name="cost" value="1 000,25">
My problem is that it should be a space instead of the  
. I have tested with normal strings and shows the space, only when using Tostring() with an associated culture does it show the  
.
How can I change?
I haven’t tried it yet...but there is some explanation why it works with some strings and not with others?
– António Garcez
There is. They are special characters in HTML, which have a different Encounter. That’s why they are replaced by other equivalents. Here are some examples: http://erikasarti.net/html/accent/
– Good Bye Blue sky
I’m sorry but I didn’t notice, if I put in HTML the string "hello world", space appears. This string has a space and appears with a special character...that’s what I don’t understand.
– António Garcez
One thing, the solution doesn’t work. The
 
.– António Garcez
I will update the response with a possible solution, as the HTML Encounter continues to occur
– Good Bye Blue sky
It still doesn’t work.... I’ve tried formatting dates and spaces appear...
– António Garcez
Good. unfortunately I can not help you anymore, in which case already escaped my field of knowledge, I suggest checking the charset of your HTML document and check if apply the crop in
.ToString()
influence the view rendering somehow more.– Good Bye Blue sky