[Developers] html entity encoding
Nick Thompson
nix at metaweb.com
Fri May 2 23:44:16 UTC 2008
hmm, i think &dquo; should probably be used as well, thanks for
the reality check.
i don't think the default language support in mql is
complete yet. it's not so much choosing something other
than /lang/en that's the problem - but for practical purposes
what you want is "some preferred language, with fallback to /lang/en".
it's that fallback part that's tricky.
i think it's safe to say that it will be set with the "lang" parameter
in the envelope once it's ready though.
nick
David Flanagan wrote:
> Nick Thompson wrote:
>> it also escapes " to &dquo; so that the returned values
>> are safe in html attribute values as well as in html text.
>>
>> nick
>
> Not according to my tests, it doesn't. Run this query on sandbox:
>
> {"guid":"#9202a8c04000641f80000000082ef550",
> "name":null}
>
> You'll see that &,<, and > are escaped in the name, but " is only given
> a JSON backslash in the response, not &dquo;
>
> Nick, you're probably the one to ask (changing the subject here) whether
> mqlread has some way of specifying a default language (other than
> /lang/en) for names. Is there an envelope parameter or HTTP header for
> this yet?
>
> David
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list