# Unicode comparison

**URL:** <https://forum.kirupa.com/t/unicode-comparison/328339>\
**Category:** flash\
**Created:** [May 9, 2012, 3:29pm UTC](https://forum.kirupa.com/t/unicode-comparison/328339 "2012-05-09T15:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashUserNull](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Post date:** [May 9, 2012, 3:29pm UTC](https://forum.kirupa.com/t/unicode-comparison/328339/1 "2012-05-09T15:29:49Z")

</div>

Given the following:

var str1:String="\u002c";  
var str2:String=",";

trace(str1==str2);  
//traces true

Both str1 and str2 are both referring to the same character so when u compare them they are equal. However one is in Unicode format and the other is not, so in that respect they are not equal inputs. What i need is for this comparison to read false. So does anyone know of a way to detect if an input is in Unicode format verses not?
