Jump to content
By fans, for fans. By fans, for fans. By fans, for fans.

XML and/or Zen Buddhism question


drdooom

Recommended Posts

AN XML document often starts with a first line like:

 

<?xml version="1.0" encoding="UTF-8"?>

 

Question is: if the computer doesn't know what the encoding is then how can it read the document to find out what the encoding is?

 

:wacko:

 

Yet it works!

 

If only the first line was in a standard format that the computer had been taught to recognise as a default.

Link to comment
Share on other sites

Because it doesn't need to know what encoding it is to read it and find out what the encoding is.

 

So you're saying I should 'unask' the question?

 

Is the method unask() threadsafe?

 

If only the first line was in a standard format that the computer had been taught to recognise as a default.

 

So what is this 'standard format', oh Zen master?

 

Can you explain it in the form of a Koan?

Link to comment
Share on other sites

Guest Anders Honoré

So you're saying I should 'unask' the question?

 

Is the method unask() threadsafe?

So what is this 'standard format', oh Zen master?

 

Can you explain it in the form of a Koan?

 

how about an enlightening haiku:

 

If only first line

was standard format computer

would know as default

 

missing a seasonal word but pretty darn close.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...