Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22695
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Fredrik Jonson <fredrik@jonson.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Font evolution |
| Date | 3 Mar 2013 18:48:39 GMT |
| Lines | 29 |
| Message-ID | <slrnkj76o7.cmg.fredrik@biggles.jonson.org> (permalink) |
| References | <d9r3j8lmi694s3j5qhma66q1dq58oh2mrd@4ax.com> <nospam-0ABCE6.04570303032013@news.aioe.org> |
| X-Trace | individual.net jQQvVPJRot8qtNxhivCRJwW34vslSgP6X1Tb34BVQlgYsUHVT4WDTjk+saPgnOVyQ= |
| Cancel-Lock | sha1:5i3Fkq/jiYY4VVHn7WEKSE+cp6M= |
| User-Agent | slrn/pre1.0.0-18 (Linux) |
| Xref | csiph.com comp.lang.java.programmer:22695 |
Show key headers only | View raw
John B. Matthews wrote:
> Roedy Green <see_website@mindprod.com.invalid> wrote:
>
> > What happens in Java apps when a glyph is missing from the
> > specified font?
>
> I think you're supposed to see a WHITE SQUARE, which "may be
> used to represent a missing ideograph."
I don't do Java GUI programming very often, but in logs and terminals I
regularily stumble upon U+FFFD in output from java code with broken charset
conversion. U+FFFD is the unicode replacement character and is represented
by a black rhomb with a white question mark inside.
https://en.wikipedia.org/wiki/U%2BFFFD
class Sscce {
static public void main(String[] arg) {
String foo = new String(new byte[] { (byte) -1 });
javax.swing.JOptionPane.showMessageDialog(null, foo);
}
}
Granted, I'm not sure it is entirely correct to equate a missing ideograph
with a unrepresentable chacacter?
--
Fredrik Jonson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Font evolution Roedy Green <see_website@mindprod.com.invalid> - 2013-03-02 04:17 -0800
Re: Font evolution Jan Burse <janburse@fastmail.fm> - 2013-03-02 14:32 +0100
Re: Font evolution "John B. Matthews" <nospam@nospam.invalid> - 2013-03-03 04:57 -0500
Re: Font evolution Fredrik Jonson <fredrik@jonson.org> - 2013-03-03 18:48 +0000
Re: Font evolution "John B. Matthews" <nospam@nospam.invalid> - 2013-03-03 20:46 -0500
Re: Font evolution Fredrik Jonson <fredrik@jonson.org> - 2013-03-04 06:59 +0000
csiph-web