I am using Moodle 2.0

I have entered an equation using just TeX, but I get question marks as if it cannot interpret something correctly.

When I do it in drag math, I get exactly the same statement when I insert it into a text field, but it renders correctly.

Here is the input. Notice the only difference in the top and bottom TeX is some white space. Does that matter?

Here is the output.

Why do I get all the question marks when inputting directly? Is there a way to fix this? I'd like to use GIFT to import some questions, but not if they won't render correctly.

Thanks!