asp.net mvc - Unicode Issue with Chrome -


here goes path follow.
1. user enters text in html editor, tiny mce edtitor.
2. text uploaded server side mvc controller
3. controller use following line write html content (string) temp location on server

new memorystream(encoding.unicode.getbytes(htmlcontent))

4. file in temp location (in step) used byte[] of contents
5. in last step byte[] send via stored procedure database column field of type varbinary.

problem when read varbinary byte[] , send browser using following line of mvc mime type text/html.

file(attachmentfile.binarydata, mimetype, pfilename);

file downloads , opens correctly in both ie , firefox not in chrome. don't know issue chrome


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

javascript - Backbone.js getting target attribute -

html - Repeat image to extend header to fill screen -