Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

forms - PHP accented characters in POST submit -


i have html form on submit.php, page encoded utf-8 (using meta tag), when form submitted process.php (via post), of variables stored in session, , page uses header: location go submit.php, uses session variables redisplay of entered information.

if enter accented character, example é (&eacute), when page returns submit.php, not render character correctly, ã (&atilde) , © (&copy) instead.

where should looking solve problem? i'm assuming it's server side, rendered page utf-8 (the browser confirms page utf-8 before , after submitting)

solution:

the string being passed through htmlentities() @ 1 point, turns out has default character encoding of iso-8859-1 answer specify 'utf-8' in function call.

é being turned sure-fire sign 2-byte utf-8 character @ point gets interpreted in 1-byte character set (most iso-8859-1).

you need find happens, , fix it.

maybe show code - maybe has idea.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -