It's hard to say for sure. What is the character? When you say
"random", do you mean it changes all the time, or it's a constant but
inexplicable value?
I would look into whether the different HTML files maybe have different
file encodings or Unicode byte treatments. A hexdump utility can be
helpful here to see what is really in the files. Even "simple text
editors" interpret byte sequences for you to display text, and can hide
information that might be important in this case.
--Ned.
brutimus wrote:
> I've been having this problem with what I believe is a random Unicode
> character showing up in my rendered HTML. Here's the template
> setup...
>
> {% block content %}
> <relative location of random character>
> {% include "whatever.html" %}
> {% endblock %}
>
> So here are my tests. I've put a marker (just some unique word) right
> before the opening block tag -- the character shows up after this
> marker. Next I put that marker after the endblock tag -- the
> character shows up before the marker. Then, I put the marker at the
> beginning of the include -- the character shows up before the marker.
> So I've concluded that somehow, a character is being added between the
> first block tag and the include tag. I've retyped this all to make
> absolutely sure there isn't some character copy/pasted into there by
> chance.
>
> Also, there is no database data around this area that could be tossing
> in this character.
>
> The issue is that this character is creating a newline in IE, but
> Firefox ignores it just fine.
>
> Any help on the topic would be greatly appreciated. I've searched
> around and asked everyone I know to no result. Thanks in advance.
>
> -Sean Stoops
>
>
> >
>
>
--
Ned Batchelder, http://nedbatchelder.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---