Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

UTF-8 character set tekst?

Pagina: 1
Acties:
  • 175 views

  • ArChie
  • Registratie: November 2005
  • Niet online
Is er een manier om op dit forum UTF-8 character set tekst te plaatsen waarbij de spatiering behouden blijft? Als ik bijvoorbeeld een stuk UTF-8 tekst in de forum editor copieer tussen de code markers dan heeft dat niet het gewenste resultaat:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
└─■ TOT { Time Offset Table }
  └─■ transport stream ID 7
    └─■ sections:
      └─■ section
        ├─■ UTC_time { 16-9-08 18:33:02 GMT }
        │ ├─■ MJD = 54725
        │ └─■ UTC = 0x183302
        └─■ descriptors:
          └─■ local_time_offset_descriptor
            └─■ local time offsets:
              └─■ offset
                ├─■ country_code = NLD
                ├─■ country_region_id = 0
                ├─■ local_time_offset_polarity = 0
                ├─■ local_time_offset = 02:00
                ├─■ time_of_change { 26-10-08 1:00:00 GMT }
                │ ├─■ MJD = 54765
                │ └─■ UTC = 0x010000
                └─■ next_time_offset = 01:00


De tekst was overigens niet als die
code:
1
└
codes gecopieerd, maar als de getoonde UTF-8 └ karakters uit een tekstbestand geopend in notepad.

Zonder code markers zijn de karakters uit de UTF-8 character set wel leesbaar, maar worden de voorloop spaties verwijderd zodat de opmaak verloren gaat:

└─■ TOT { Time Offset Table }
└─■ transport stream ID 7
└─■ sections:
└─■ section
├─■ UTC_time { 16-9-08 18:33:02 GMT }
│ ├─■ MJD = 54725
│ └─■ UTC = 0x183302
└─■ descriptors:
└─■ local_time_offset_descriptor
└─■ local time offsets:
└─■ offset
├─■ country_code = NLD
├─■ country_region_id = 0
├─■ local_time_offset_polarity = 0
├─■ local_time_offset = 02:00
├─■ time_of_change { 26-10-08 1:00:00 GMT }
│ ├─■ MJD = 54765
│ └─■ UTC = 0x010000
└─■ next_time_offset = 01:00


Zo had het er eigenlijk uit moeten zien:

Afbeeldingslocatie: http://img502.imageshack.us/img502/9726/tf8samplens9.png

Iemand een tip hoe dit op te lossen?

  • Erkens
  • Registratie: December 2001
  • Niet online

Erkens

Fotograaf

    Je
        zou
            natuurlijk
                een
             
        kunnen
    proberen.

:)

Of je duwt het in een [pre]-blok:
└─■ TOT { Time Offset Table }
  └─■ transport stream ID 7
    └─■ sections:
      └─■ section
        ├─■ UTC_time { 16-9-08 18:33:02 GMT }
        │ ├─■ MJD = 54725
        │ └─■ UTC = 0x183302
        └─■ descriptors:
          └─■ local_time_offset_descriptor
            └─■ local time offsets:
              └─■ offset
                ├─■ country_code = NLD
                ├─■ country_region_id = 0
                ├─■ local_time_offset_polarity = 0
                ├─■ local_time_offset = 02:00
                ├─■ time_of_change { 26-10-08 1:00:00 GMT }
                │ ├─■ MJD = 54765
                │ └─■ UTC = 0x010000
                └─■ next_time_offset = 01:00


:Y)

  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

Oplossingen genoeg als je perse de li tag niet wilt gebruiken ;)

God, root, what is difference? | Talga Vassternich | IBM zuigt


  • crisp
  • Registratie: Februari 2000
  • Laatst online: 23:57

crisp

Devver

Pixelated

En wat dacht je van [pre]?
└─■ TOT { Time Offset Table }
  └─■ transport stream ID 7
    └─■ sections:
      └─■ section
        ├─■ UTC_time { 16-9-08 18:33:02 GMT }
        │ ├─■ MJD = 54725
        │ └─■ UTC = 0x183302
        └─■ descriptors:
          └─■ local_time_offset_descriptor
            └─■ local time offsets:
              └─■ offset
                ├─■ country_code = NLD
                ├─■ country_region_id = 0
                ├─■ local_time_offset_polarity = 0
                ├─■ local_time_offset = 02:00
                ├─■ time_of_change { 26-10-08 1:00:00 GMT }
                │ ├─■ MJD = 54765
                │ └─■ UTC = 0x010000
                └─■ next_time_offset = 01:00


edit: of je leest even verder 8)7 :P

Intentionally left blank


  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

Het zou extra jammer zijn als juist jij zou roepen dat het niet kon
* moto-moi aait crispje

O+

God, root, what is difference? | Talga Vassternich | IBM zuigt


Dit topic is gesloten.