ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christian" <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Error while compiling : ! String contains an invalid	utf-8 sequence.
Date: Fri, 25 Nov 2011 20:03:08 +0100	[thread overview]
Message-ID: <015801ccaba4$df06e8e0$9d14baa0$@gmx.de> (raw)
In-Reply-To: <CAA5sP+_=PCNEfD_mXHBUV88FCT8s44bo=tr-SmNqPAHt1RgEdA@mail.gmail.com>

> 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".
> 
> Here is the tex file :
> 
> %%%%%%%%%%%%%%%beginning of file%%%%%%
> \usemodule[simplefonts]
> \setmainfont[hiraginokakugothicpro] %a japanese font \enableregime[utf8]
> \setupbibtex[database=biblio]
> 
> \starttext
> \completepublications
> \stoptext
> %%%%%%%%%%%%%%%%%end of file%%%%%%%%
> 
> 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, and then should I use anything else to replace it ? (does something
> like Biber work ?)
> 

Same here. It messes up when converting .bib to .bbl. Maybe check your bbl file, too. Mine looks like this, for example:
a={{Hirofumi Uzawa~宇沢弘文}}

You could try to write the .bbl file directly yourself, although that is not a comfortable option, if you have many Japanese entries.
Apart from that there's not much coming to mind.

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2011-11-25 19:03 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 [this message]
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
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='015801ccaba4$df06e8e0$9d14baa0$@gmx.de' \
    --to=metan0r@gmx.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).