# ANN: Programmierung in Ruby

**URL:** <https://rubytalk.org/t/ann-programmierung-in-ruby/256>\
**Category:** ruby-talk\
**Created:** [14 June 2002 13:53 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256 "2002-06-14T13:53:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juergen\_Katins1](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juergen\_Katins1](https://rubytalk.org/u/Juergen_Katins1)\
**Post date:** [14 June 2002 13:53 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/1 "2002-06-14T13:53:17Z")

</div>

Programmierung in Ruby Online gibt es jetzt mit ausführlichem  
Inhaltsverzeichnis.  
Desweiteren funktionieren jetzt endlich die Html-Seitenreferenzen,  
die meisten zeigen sogar an die richtige Stelle.  
Außerdem ist ein Index angefügt, der aber im Moment noch halb deutsch halb  
englisch ist.  
[http://home.vr-web.de/juergen.katins/ruby/index](http://home.vr-web.de/juergen.katins/ruby/index)

Viel Spaß mit Ruby

Jürgen Katins

Programmierung in Ruby Online is available now with a detailed table of  
contents.  
Furthermore the html links are at last working, at least the most point  
even to the correct locations.  
In addition now there is an index which but is yet half german half english.  
[http://home.vr-web.de/juergen.katins/ruby/index](http://home.vr-web.de/juergen.katins/ruby/index)

Much fun with Ruby

Juergen Katins

---

<div class="post-metadata">

**Author:** ![Juergen\_Katins1](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juergen\_Katins1](https://rubytalk.org/u/Juergen_Katins1)\
**Post date:** [14 June 2002 14:33 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/2 "2002-06-14T14:33:22Z")

</div>

An english version (without detailed table of contents but with working  
links and an  
full english index) is available too.  
[http://home.vr-web.de/juergen.katins/ruby/book/index.html](http://home.vr-web.de/juergen.katins/ruby/book/index.html)

Much fun with Ruby

Juergen Katins

---

<div class="post-metadata">

**Author:** ![Tobi\_Reif](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tobi\_Reif](https://rubytalk.org/u/Tobi_Reif)\
**Post date:** [14 June 2002 14:47 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/3 "2002-06-14T14:47:40Z")

</div>

Juergen Katins wrote:

> Programmierung in Ruby Online is available now with a detailed table of  
> contents.  
> Furthermore the html links are at last working, at least the most point  
> even to the correct locations.  
> In addition now there is an index which but is yet half german half english.  
> [http://home.vr-web.de/juergen.katins/ruby/index](http://home.vr-web.de/juergen.katins/ruby/index)

I thought I told you a while ago:

In NN6.2, it’s all garbled:  
[http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)

and  
[http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl](http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl)  
gives “Not Found”

Tobi

> **···**
>
> –  
> [http://www.pinkjuice.com/](http://www.pinkjuice.com/)

---

<div class="post-metadata">

**Author:** ![Ned\_Konz](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@Ned\_Konz](https://rubytalk.org/u/Ned_Konz)\
**Post date:** [14 June 2002 15:56 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/4 "2002-06-14T15:56:38Z")

</div>

Looks fine in Konqueror and Mozilla 1.0. And the HTML looks fine too  
(other than some non-standard attributes).

Perhaps your browser is broken?

> **···**
>
> On Friday 14 June 2002 07:47 am, Tobias Reif wrote:
> 
> > Juergen Katins wrote:
> > 
> > > In addition now there is an index which but is yet half german  
> > > half english. [http://home.vr-web.de/juergen.katins/ruby/index](http://home.vr-web.de/juergen.katins/ruby/index)
> > 
> > I thought I told you a while ago:
> > 
> > In NN6.2, it’s all garbled:  
> > [http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)
> 
> –  
> Ned Konz  
> [http://bike-nomad.com](http://bike-nomad.com)  
> GPG key ID: BEEA7EFE

---

<div class="post-metadata">

**Author:** ![Sascha](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@Sascha](https://rubytalk.org/u/Sascha)\
**Post date:** [14 June 2002 16:58 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/5 "2002-06-14T16:58:38Z")

</div>

Tobias Reif [tobiasreif@pinkjuice.com](mailto:tobiasreif@pinkjuice.com) writes:

> I thought I told you a while ago:
> 
> In NN6.2, it’s all garbled:  
> [http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)

Somehow the index.html comes as UTF-16 (though itself states to be  
iso-8859-1) when I retrieve it directly with wget. Lynx, w3m, Opera  
6.0, Konqueror and Mozilla 1.0 all get The Right Thing ™.

After downloading the XML source files (wget -m …), there are quite  
some files in UTF-16 as well (though they state to be iso, too):

```
 builtins.xml.extra
 conv_index.txt
 forewordde.xml
 index.xml.extra.txt
 lib_network.txt
 tut_classes.xml.test
 tut_methods.xml.test

```

> [http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl](http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl) gives “Not  
> Found”

Must be some windows filesystem issue, the file is there, but all uppercase:

```
 http://home.vr-web.de/juergen.katins/ruby/xml/CONVERT.XSL

```

I allowed to skim and tweak (indenting, some HTML corrections) the  
convert.xsl (see appended file). Hopefully it still works for your  
setup, I use xsltproc (libxslt 1.0.18).

Kind regards,  
Sascha

[convert.xsl](https://rubytalk.org/uploads/short-url/yUjltiM3vopbUUgIO7dfBFJJq7.xsl) (21.2 KB)

> **···**
>
> –  
> Avoid temporary variables and strange women.

---

<div class="post-metadata">

**Author:** ![Wesley\_J\_Landaker](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@Wesley\_J\_Landaker](https://rubytalk.org/u/Wesley_J_Landaker)\
**Post date:** [14 June 2002 17:38 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/6 "2002-06-14T17:38:16Z")

</div>

Don’t know if this helps, but the page shown in your web browser in that  
screen shoot is encoded in UTF-16 (multibyte, with the tell-tale  
byte-order-mark).

(I’m not sure why your browser can’t handle UTF-16, though…)

> **···**
>
> On Friday 14 June 2002 08:47 am, Tobias Reif wrote:
> 
> > Juergen Katins wrote:
> > 
> > > Programmierung in Ruby Online is available now with a detailed  
> > > table of contents.  
> > > Furthermore the html links are at last working, at least the most  
> > > point even to the correct locations.  
> > > In addition now there is an index which but is yet half german half  
> > > english. [http://home.vr-web.de/juergen.katins/ruby/index](http://home.vr-web.de/juergen.katins/ruby/index)
> > 
> > I thought I told you a while ago:
> > 
> > In NN6.2, it’s all garbled:  
> > [http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)
> 
> –  
> Wesley J. Landaker - [wjl@icecavern.net](mailto:wjl@icecavern.net)  
> OpenPGP FP: C99E DF40 54F6 B625 FD48 B509 A3DE 8D79 541F F830

---

<div class="post-metadata">

**Author:** ![Juergen\_Katins1](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juergen\_Katins1](https://rubytalk.org/u/Juergen_Katins1)\
**Post date:** [17 June 2002 08:16 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/7 "2002-06-17T08:16:19Z")

</div>

“Tobias Reif” [tobiasreif@pinkjuice.com](mailto:tobiasreif@pinkjuice.com) schrieb im Newsbeitrag  
[news:3D0A0241.3000507@pinkjuice.com](mailto:news:3D0A0241.3000507@pinkjuice.com)…

> In NN6.2, it’s all garbled:  
> [http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)

There seems to be a problem with unicode. I don’t really understand it  
completely but I hope  
I have fixed it now. The HTML files should be all ASCII now.

> and  
> [http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl](http://home.vr-web.de/juergen.katins/ruby/xml/convert.xsl)  
> gives “Not Found”

Sorry, I always forget to fix this damned Microsoft Windows automatic file  
name upcasing.  
I fixed it.

Juergen Katins

---

<div class="post-metadata">

**Author:** ![Tobi\_Reif](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tobi\_Reif](https://rubytalk.org/u/Tobi_Reif)\
**Post date:** [14 June 2002 16:18 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/8 "2002-06-14T16:18:46Z")

</div>

Ned Konz wrote:

> Perhaps your browser is broken?

nerver had this, with any site.

Other NN6ers?

Tobi

> **···**
>
> –  
> [http://www.pinkjuice.com/](http://www.pinkjuice.com/)

---

<div class="post-metadata">

**Author:** ![Tobi\_Reif](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tobi\_Reif](https://rubytalk.org/u/Tobi_Reif)\
**Post date:** [14 June 2002 17:10 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/9 "2002-06-14T17:10:46Z")

</div>

Sascha Lüdecke wrote:

> ```
> http://home.vr-web.de/juergen.katins/ruby/xml/CONVERT.XSL
> 
> ```

MIME Type sent is text/html; perhaps text/xml or application/xml+xslt  
would be better, or, since it’s only there for viewing, text/plain.

Tobi

> **···**
>
> –  
> [http://www.pinkjuice.com/](http://www.pinkjuice.com/)

---

<div class="post-metadata">

**Author:** ![Tobi\_Reif](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tobi\_Reif](https://rubytalk.org/u/Tobi_Reif)\
**Post date:** [14 June 2002 22:20 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/10 "2002-06-14T22:20:59Z")

</div>

Sascha Lüdecke wrote:

> Somehow the index.html comes as UTF-16 (though itself states to be  
> iso-8859-1)

That is an error AFAICS, which is the reason for the garbled view in NN6.

> Must be some windows filesystem issue, the file is there, but all uppercase:
> 
> ```
> http://home.vr-web.de/juergen.katins/ruby/xml/CONVERT.XSL
> 
> ```

… so the link should be corrected.

Tobi

> **···**
>
> –  
> [http://www.pinkjuice.com/](http://www.pinkjuice.com/)

---

<div class="post-metadata">

**Author:** ![Dave\_Thomas](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@Dave\_Thomas](https://rubytalk.org/u/Dave_Thomas)\
**Post date:** [14 June 2002 16:25 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/11 "2002-06-14T16:25:01Z")

</div>

Tobias Reif [tobiasreif@pinkjuice.com](mailto:tobiasreif@pinkjuice.com) writes:

> > Perhaps your browser is broken?
> 
> nerver had this, with any site.

The content is broken - it’s two-byte characters, but the encoding’s  
set wrong.

Dave

---

<div class="post-metadata">

**Author:** ![Sean\_O\_Dell](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Sean\_O\_Dell](https://rubytalk.org/u/Sean_O_Dell)\
**Post date:** [14 June 2002 17:33 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/12 "2002-06-14T17:33:35Z")

</div>

Tobias Reif wrote:

> Ned Konz wrote:
> 
> > Perhaps your browser is broken?
> 
> nerver had this, with any site.
> 
> Other NN6ers?

Looks fine here on N6.2.

```
Sean

```

---

<div class="post-metadata">

**Author:** ![Carlos](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@Carlos](https://rubytalk.org/u/Carlos)\
**Post date:** [15 June 2002 18:46 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/13 "2002-06-15T18:46:20Z")

</div>

> > Perhaps your browser is broken?
> 
> nerver had this, with any site.
> 
> Other NN6ers?

Mozilla 1.0RC2, lots of chinese (or japanese?) characters, question marks  
and the “for all” symbol.

Strangely, I can see the source correctly. I’d say the problem is in the  
CSS. (Just to say something.)

---

<div class="post-metadata">

**Author:** ![Philip\_Mak2](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@Philip\_Mak2](https://rubytalk.org/u/Philip_Mak2)\
**Post date:** [14 June 2002 18:45 UTC](https://rubytalk.org/t/ann-programmierung-in-ruby/256/14 "2002-06-14T18:45:26Z")

</div>

> > > Perhaps your browser is broken?
> > 
> > nerver had this, with any site.
> 
> The content is broken - it’s two-byte characters, but the encoding’s  
> set wrong.

Yeah, that’s what it looks like. The Netscape 6.2 screenshot  
([http://www.pinkjuice.com/temp/prgrbnn6.png](http://www.pinkjuice.com/temp/prgrbnn6.png)) shows hollow boxes with  
every other character; that’s a telltale sign of Unicode. However, if  
I view the headers for the URL  
[http://home.vr-web.de/juergen.katins/ruby/book/index.html](http://home.vr-web.de/juergen.katins/ruby/book/index.html) this is what  
I get:

$ telnet [home.vr-web.de](http://home.vr-web.de) 80  
Trying 195.243.197.45…  
Connected to [home.vr-web.de](http://home.vr-web.de).  
Escape character is ‘^]’.  
HEAD /juergen.katins/ruby/book/index.html HTTP/1.1  
Host: [home.vr-web.de](http://home.vr-web.de)

HTTP/1.1 200 OK  
Server: Apache/1.3.14 (Unix)  
Content-Type: text/html

It says “Content-Type: text/html” without any mention of a two-byte  
character encoding, so some web browsers get confused.

> **···**
>
> On Sat, Jun 15, 2002 at 01:25:01AM +0900, Dave Thomas wrote:  
> Date: Fri, 14 Jun 2002 18:42:39 GMT
