Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 2
    when you say compare, what does that mean? Can you post your compare code. It does sound like a trim or character encoding problem. Commented Jun 16, 2011 at 16:12
  • if (archCan.equals(arch))... I use this method to compare, and I use trim before the comparison. I think it could be an encoding problem. Commented Jun 16, 2011 at 16:16
  • what does if (archCan.trim().equals(arch.trim())) do? Commented Jun 16, 2011 at 16:18
  • The same, they are not equal. Commented Jun 16, 2011 at 16:22
  • Then I'm pretty sure its an encoding problem. Try highlycaffeinated's answer. Commented Jun 16, 2011 at 16:24