Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Co to za znak?
adbacz
post
Post #1





Grupa: Zarejestrowani
Postów: 532
Pomógł: 24
Dołączył: 15.04.2011
Skąd: Kalisz

Ostrzeżenie: (0%)
-----


Znak opisany jest w 3 znakach tablicy ASCII i ma numery: 239, 191, 188. Funkcja strlen okresla go jako 3 znaki, mimo, że podaję tylko jeden. Dodatkowo działa on tylko w kodowaniu utf8.

(IMG:http://imageshack.us/scaled/landing/201/imagebv.png)

Zna ktoś to coś?

EDIT:
Dodatkowo powiem, że znak ten pisany w GG cofa kursor. To znaczy wszystkie litery się zachowują w edytorze, widać wszystkie, ale za każdym razem jak się wklei ten znak to kursor zamiast przesuwać się w prawo to cofa się i nachodzi na litery już napisane.

Ten post edytował adbacz 23.10.2012, 07:53:45
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
darko
post
Post #2





Grupa: Zarejestrowani
Postów: 2 885
Pomógł: 463
Dołączył: 3.10.2009
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Z tego, co napisałeś, to prawdopodobnie zaklodowany znak DEL
ps. przesUwać
Go to the top of the page
+Quote Post
Pawel_W
post
Post #3





Grupa: Zarejestrowani
Postów: 1 675
Pomógł: 286
Dołączył: 15.06.2009
Skąd: Wieliczka

Ostrzeżenie: (0%)
-----


ten znak służy do kodowania BOM (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
Crozin
post
Post #4





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Jest to znak U+FFFC (UTF-8: 0xEF 0xBF, 0xBC), który nie jest częścią BOM-u. http://en.wikipedia.org/wiki/Specials_(Unicode_block)
Go to the top of the page
+Quote Post
adbacz
post
Post #5





Grupa: Zarejestrowani
Postów: 532
Pomógł: 24
Dołączył: 15.04.2011
Skąd: Kalisz

Ostrzeżenie: (0%)
-----


A ten znak jest jakimś konkretnym znakiem gdzieś używanym? Gdzie można się z nim spotkać?
Go to the top of the page
+Quote Post
Crozin
post
Post #6





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Cytat("http://www.unicode.org/reports/tr20/tr20-1.html")
3.1 Object Replacement Character, U+FFFC

Short description: The object replacement character is used to stand in place of an object (e.g. an image) included in a text.

Reason for inclusion: The object replacement character was included in Unicode only in order to reserve a codepoint for a very frequent application-internal use. Many text-processing applications store the text and the associated markup (or in some cases styling information) of a document in separate structures. The actual text is kept in a single linear structure; additional information is kept separately with pointers to the appropriate text positions. The overall implementation makes sure that these two structures are kept in sync. If the text contains objects such as images, it is extremely helpful for implementations to have a sentinel in the text itself; any additional information is kept separately.

Problems when used in markup: Including an object replacement character in markup text does not work because the additional information (what object to include,...) is not available.

Problems with other uses: The object replacement character is also problematic when used in plain text.

Replacement markup: The markup to be used in place of the Object Replacement Character depends on the object in question and the markup context it is used in. Typical cases are <html:img src'...' />, <html:object ...>, or <html:applet ...>. These constructs allow to provide all additional information needed to identify and use the object in question.

What to do if detected: In a proxy context or browser context, ignore. When received in an editing context, remove, maybe with a warning to the user.
Go to the top of the page
+Quote Post
adbacz
post
Post #7





Grupa: Zarejestrowani
Postów: 532
Pomógł: 24
Dołączył: 15.04.2011
Skąd: Kalisz

Ostrzeżenie: (0%)
-----


Dzięki za copy/paste Crozin, już wszystko wiadomo.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.09.2025 - 15:32