Euphoria Ticket #404: convert:to_number description has unicode?

from comments in man:convert_to_number:

  • You can have single currency symbol before the first digit or after the last digit. A currency symbol is any character of the string: "$ٌْرا".

this isn't displaying as expected. possibly is not being rendered correctly by creolehtml. eudoc seems ok with it.

on my not fully unicode system, the convert page ends at the '$' in that last quoted expression.

Details

Type: Bug Report Severity: Normal Category: Documentation
Assigned To: unknown Status: Won't Fix Reported Release: 4127
Fixed in SVN #: View VCS: none Milestone: 4.0.0RC2

1. Comment by DerekParnell Nov 17, 2010

This displays correctly when I use the Opera browser. Which browser are you using?

2. Comment by ne1uno Nov 17, 2010

update: retraction: sorry couldn't get back online sooner. the html compressor I used barfed on the string. creolehtml just rendered it as a string as expected. maybe I used the wrong DOCTYPE in the template or something.

still, I think it could be a problem. although it looks ok in firefox, other browsers maybe not.

" 
$  dollar 
?  pound 
¤  ? 
?  yen 
?  euro 
" 

I don't recognize the middle one. and I can't tell at all what any except '$' is editing std/convert.e

yet I can paste from the docs html in the browser into my editor and see what I see in the browser. that file should at least be marked as containing unicode if that's what it is. if it's a codepage thing, surely all bets are off.

<!ENTITY pound  CDATA "£" -- pound sign, U+00A3 ISOnum --> 
<!ENTITY yen    CDATA "¥" -- yen sign = yuan sign, U+00A5 ISOnum --> 
<!ENTITY euro   CDATA "€"  -- euro sign, U+20AC NEW --> 

there are ISO 8859-1 html entities for these.

Latin-1 entities

not sure how creolehtml would know to use an entity %%entity yen%% -> &YEN; or if that is mapped out in in creole2

validator didn't identify a problem with that string, but there seem to be other unrelated minor problems on the page.

3. Comment by ne1uno Nov 17, 2010

weird, the entities I pasted are showing up as '?'

yet the description of the entities are showing up rendered.

looks like the ticket comment is not getting sanitized completely

4. Comment by DerekParnell Nov 17, 2010

That one you can't render is

<!ENTITY curren CDATA "¤" -- currency sign, U+00A4 ISOnum --> 

5. Comment by jimcbrown Nov 23, 2010

Adding milestone.

6. Comment by SDPringle Nov 27, 2010

You need to set the encoding on the pages. Here, if I set the encoding to UTF-8 on Opera I see just a string of squares after the dollar sign. You need to set the encoding on your web-page in the template file and edit using that encoding.

7. Comment by mattlewis Nov 30, 2010

I don't understand what action needs to be taken. I tried chrome, firefox and opera, and the page looked correct in all three. Looking at the source, I see:

content="text/html; charset=iso-8859-1" 
Can we close this as invalid?

8. Comment by jimcbrown Nov 30, 2010

The link in the ticket body doesn't work for me anymore, it seems it's now at http://openeuphoria.org/docs/std_convert.html#_2078_to_number

But the symbols show up fine for me, even using w3m on urxvt (a unicode supporting xterm). If there was a bug, it's since been fixed.

9. Comment by mattlewis Nov 30, 2010

Closing due to...it works.

10. Comment by ne1uno Dec 02, 2010

changing to won't fix.

std/convert.e has unicode w/o BOM. issue not invalid.

unicode instead of ISO entities rendered in html, iffy, but issue not invalid.

seems more like won't fix.

Search



Quick Links

User menu

Not signed in.

Misc Menu