Do different browsers handle various PHP functions differently? -
context: i'm working on matlab script decodes messages encrypted 1:1 letter-replacement scheme. works finding the common character in message , remapping letter of corresponding commonness based on stats found online. demo, i'm writing message letter frequencies correspond ones in script. write letter, developed rudimentary html form accompanying php script (live @ http://nd.edu/~wbadart/letter) count letters in input, rank them, , display rank along side desired rank.
question: i'm using firefox, , tool worked fine, displaying incorrect values teammates in chrome , safari. 1 of telling errors chrome , safari both incorrectly displayed variable $mssglen
nothing more strlen()
of input. know account these discrepancies?
thanks!
try add encoding head section of html , try use mb_strlen instead of strlen.
<!doctype html> <html> <head> <meta charset="utf-8">
php server side language, there no difference between browsers.
difference might default values encoding request , how handled. thats strlen difference might occur.
Comments
Post a Comment