开发者

encoding issue with ñ

开发者 https://www.devze.com 2023-03-09 14:56 出处:网络
I开发者_C百科 have an issue with encoding. Take the following spanish word: niño When I include it in a filename, when outputted on screen it gets outputted as: ni%c3%b1o

I开发者_C百科 have an issue with encoding.

Take the following spanish word: niño

When I include it in a filename, when outputted on screen it gets outputted as: ni%c3%b1o

How can I encode or do necessary so that niño is outputted in the html? I develop in .net c#.


this page has a list of encodes for non standard IE not English characters. In general you can use the character code value of the character perpended by &#(x)


Are you using IE? I've seen that bug when using it. Doesn't happen with other browsers like FF or Chrome, not an ASP.Net bug or something you can avoid.

I don't know if it happens with IE 9 tho. If you look around in your favourite search engine, you'll find several sites with workarounds for this problem. Eg: Some Google's results.

I once used one I found online, and worked like a charm, but cannot remember how it was exactly.

0

精彩评论

暂无评论...
验证码 换一张
取 消