emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Special characters in tables (iso-latin-1 or utf-8)
@ 2013-09-27  8:21 Jarmo Hurri
  2013-09-27  8:53 ` Michael Brand
  2013-09-27 10:02 ` Marcin Borkowski
  0 siblings, 2 replies; 4+ messages in thread
From: Jarmo Hurri @ 2013-09-27  8:21 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

A lot of my tables contain special characters (such as ä and ö) because
those are used in Finnish names. These are now causing problems for me
in table formulas.

Can someone tell me how to fix the table below so that the formula will
work?

* testing table
| string | same string |
|--------+-------------|
| abc    | abc         |
| smörre | #ERROR      |
#+TBLFM: $2=$1

When I open a new org-file and type special characters in it, the
default encoding seems to be iso-latin-1; changing this to utf-8 has not
helped.

All the best,

Jarmo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Special characters in tables (iso-latin-1 or utf-8)
  2013-09-27  8:21 Special characters in tables (iso-latin-1 or utf-8) Jarmo Hurri
@ 2013-09-27  8:53 ` Michael Brand
  2013-09-28  8:05   ` Jarmo Hurri
  2013-09-27 10:02 ` Marcin Borkowski
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Brand @ 2013-09-27  8:53 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: Org Mode

Hi Jarmo

On Fri, Sep 27, 2013 at 10:21 AM, Jarmo Hurri <jarmo.hurri@syk.fi> wrote:
> | string | same string |
> |--------+-------------|
> | abc    | abc         |
> | smörre | #ERROR      |
> #+TBLFM: $2=$1

A lisp formula is the easiest way to just copy fields:
#+TBLFM: $2 = '(identity $1)

See also the ERT test-org-table/copy-field in testing/lisp/test-org-table.el:
http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob_plain;f=testing/lisp/test-org-table.el

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Special characters in tables (iso-latin-1 or utf-8)
  2013-09-27  8:21 Special characters in tables (iso-latin-1 or utf-8) Jarmo Hurri
  2013-09-27  8:53 ` Michael Brand
@ 2013-09-27 10:02 ` Marcin Borkowski
  1 sibling, 0 replies; 4+ messages in thread
From: Marcin Borkowski @ 2013-09-27 10:02 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2013-09-27, o godz. 11:21:58
Jarmo Hurri <jarmo.hurri@syk.fi> napisał(a):

> 
> Greetings.
> 
> A lot of my tables contain special characters (such as ä and ö)
> because those are used in Finnish names. These are now causing
> problems for me in table formulas.
> 
> Can someone tell me how to fix the table below so that the formula
> will work?
> 
> * testing table
> | string | same string |
> |--------+-------------|
> | abc    | abc         |
> | smörre | #ERROR      |
> #+TBLFM: $2=$1
> 
> When I open a new org-file and type special characters in it, the
> default encoding seems to be iso-latin-1; changing this to utf-8 has
> not helped.

My guess would be that the reason is that calc supports only ASCII
strings.

> All the best,
> 
> Jarmo

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Special characters in tables (iso-latin-1 or utf-8)
  2013-09-27  8:53 ` Michael Brand
@ 2013-09-28  8:05   ` Jarmo Hurri
  0 siblings, 0 replies; 4+ messages in thread
From: Jarmo Hurri @ 2013-09-28  8:05 UTC (permalink / raw)
  To: emacs-orgmode


Michael Brand <michael.ch.brand@gmail.com> writes:

> A lisp formula is the easiest way to just copy fields:
> #+TBLFM: $2 = '(identity $1)

Great tip, thanks!

Jarmo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-28  8:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-27  8:21 Special characters in tables (iso-latin-1 or utf-8) Jarmo Hurri
2013-09-27  8:53 ` Michael Brand
2013-09-28  8:05   ` Jarmo Hurri
2013-09-27 10:02 ` Marcin Borkowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).