ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ulrike Fischer <news3@nililand.de>
To: ntg-context@ntg.nl
Subject: Re: Error while compiling : ! String contains an invalid utf-8 sequence.
Date: Sat, 26 Nov 2011 10:35:21 +0100	[thread overview]
Message-ID: <9ih3vujj7qa3$.dlg@nililand.de> (raw)
In-Reply-To: <CAA5sP+_=PCNEfD_mXHBUV88FCT8s44bo=tr-SmNqPAHt1RgEdA@mail.gmail.com>

Am Fri, 25 Nov 2011 19:50:52 +0100 schrieb Alexandre Krispin:

> Hello,
> 
> I am trying to get japanese displayed in bibliography. But I get the error
> "! String contains an invalid utf-8 sequence." while compiling with the
> command "context *tex".

> And here is the bib file :
> 
> %%%%%%%%%%%%%%%beginning of file%%%%%%%
> @article{uzawa2011tpp,
> author = "Hirofumi Uzawa 宇沢弘文, Uchihashi Katsuto 内橋克人",
> journal = "Sekai 世界",
> title = "Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
> 対談TPPは社会的共通資本を破壊する",
> year = 2011,
> month = "april",
> publisher = "Iwanami shoten 岩波書店",
> pages = "62-72",
> url = "http://ci.nii.ac.jp/naid/40018706510/",
> }
> %%%%%%%%%%%%%%%end of file%%%%%%%%%%
> 
> Do someone know how to get ride of utf-8 errors ? Or is this a problem with
> bibtex, 

Yes. bibtex is an 8-bit application. Your japanese characters
consist of three or four 8-bit-blocks. As bibtex has no knowledge
that these blocks should be keeped together it can happen that
bibtex breaks them in pieces e.g. at line ends and so you end with
invalid utf8. You could try to move the blocks a bit around e.g.
with braces or spaces so that bibtex finds a break point between the
utf8-chars and not in the middle of one of them. 


> and then should I use anything else to replace it ?
> (does something like Biber work ?)

Well in latex with biblatex it works and is the recommended
solution. But I don't know if context supports biber. 


-- 
Ulrike Fischer 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2011-11-26  9:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-25 18:50 Alexandre Krispin
2011-11-25 19:03 ` Christian
2011-11-25 20:09   ` Hans Hagen
2011-11-25 22:13     ` Alexandre Krispin
2011-11-25 23:56     ` Alexandre Krispin
2011-11-27 13:33       ` Mojca Miklavec
2011-11-27 16:13         ` Alexandre Krispin
2011-11-28  9:20       ` Wolfgang Schuster
2011-12-07  8:28     ` Thomas A. Schmitz
2011-12-07 16:37       ` Alexandre Krispin
2011-12-07 17:45         ` Hans Hagen
2011-11-26  9:35 ` Ulrike Fischer [this message]
2011-11-26 10:44   ` Alexandre Krispin
2011-11-26 11:39     ` Wolfgang Schuster
2011-11-26 11:41       ` Alexandre Krispin
     [not found] <mailman.901.1322405047.4232.ntg-context@ntg.nl>
2011-11-28  7:08 ` S Barmeier
2011-11-28  8:42   ` Alexandre Krispin
2011-11-30 12:25     ` Alexandre Krispin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='9ih3vujj7qa3$.dlg@nililand.de' \
    --to=news3@nililand.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).