Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1441

Re: Using special characters like ©

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border-2.ams.xsnews.nl!post-feeder-02.xsnews.nl!frontend-F10-05.ams.news.kpn.nl
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Re: Using special characters like ©
Organization Decebal Computing
References <87a9lpdvnm.fsf@Aspire.decebal.nl> <1adf2700-2a2a-41ad-9878-bb2e733e9cb1@googlegroups.com>
X-Homepage http://www.decebal.nl/
Date Mon, 15 Jul 2013 14:10:31 +0200
Message-ID <87sizgrpl4.fsf@Aspire.decebal.nl> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock sha1:1PAHngdULwUng8VqulCEKLNyjSs=
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Lines 20
NNTP-Posting-Host 77.171.42.144
X-Trace 1373890497 news.kpn.nl 21013 77.171.42.144@kpn/77.171.42.144:46812
Xref csiph.com comp.lang.postscript:1441

Show key headers only | View raw


Op zondag 14 jul 2013 18:50 CEST schreef luser:

>> - I need to use \251, because if I use © in the generated PDF I
>> get: ©. Why?
>
> Looks like you're getting a 2-byte Unicode character.
> Postscript really doesn't work with Unicode.

Solved it by writing a preprocessor:
    echo ${line} | awk '{
      gsub(/©/, "\251");
      print}' >>${EXP_FILE}

Missing a lot of flutes and whistles, but those are not necessary at
the moment.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Using special characters like © Cecil Westerhof <Cecil@decebal.nl> - 2013-07-14 17:10 +0200
  Re: Using special characters like © luser- -droog <mijoryx@yahoo.com> - 2013-07-14 09:50 -0700
    Re: Using special characters like © Helge Blischke <h.blischke@acm.org> - 2013-07-14 20:41 +0200
    Re: Using special characters like © Cecil Westerhof <Cecil@decebal.nl> - 2013-07-14 20:34 +0200
    Re: Using special characters like © Cecil Westerhof <Cecil@decebal.nl> - 2013-07-15 14:10 +0200

csiph-web