Accent from jasvascript on VGR load_order

16 views
Skip to first unread message

Sébastien Cassan

unread,
Sep 28, 2016, 3:04:31 AM9/28/16
to HEO iForms
Hi.

I'm in trouble since some days.
I have a prescription to do, and one of my prompt is a list of choices. The list is like this :
- Probabiliste communautaire
- Documenté communautaire
- Probabiliste nosocomiale
- Documenté nosocomiale
- Antibioprophylaxie

When i chose on my prompt any of them, without accent, it works.
If I chose one with accent (for exemple : Documenté nosocomiale), my load_order is like this : 
@LOAD_ORDER=OIS=15001275^^^OOS=0^^^250000196=Documenté communautaire^^^53=.

So, il send this to HEO, but HEO prompt me to fill this prompt. 

My load_order is created by the javascript file. I tried many thinks (change encode on the JS file as ISO-8859-1, UTF-8 and ANSI, change accent character with utf8 encoding (\351), html encoding (é) or using String.fromCharCode(233)) but the accent still not going into HEO. 

Have someone an idea plse ? :) 

Sébastien Cassan

unread,
Sep 28, 2016, 5:22:55 AM9/28/16
to HEO iForms
Update : I have the same things when i want to add a comment.
I have a prompt command. On HTML, it's a textarea. This textarea is taken by javascript, and load_order command is made.
All accents chars are replaced by ?.

Sébastien Cassan

unread,
Sep 29, 2016, 8:53:06 AM9/29/16
to HEO iForms

New update : My load_order command is placed on a HTM text input field called "PRESCRIPTION_ANTIBIOTIQUE".
I sent it to HEO with the VGR command : EDIT,LOAD_ORDER,,,,`PRESCRIPTION_ANTIBIOTIQUE

If i replace my PRESCRIPTION_ANTIBIOTIQUE with the VGR command on the VGR file, no problem, accent will be taken.
I verified my html value, and accents are on.
When VGR take the value, accents are gone.

My VGR file is on ANSI enconding, while HTM file is on ISO-8859-1. I can't change the encoding file of the HTM file (we are using HEO 8.2 with M-EVA). 

Sébastien Cassan

unread,
Oct 5, 2016, 8:49:59 AM10/5/16
to HEO iForms
Hi.
I found a solution.
On my form tag, i added an attr accept-charset="UTF-8".

All accents go on the VGR command and they come on HEO.

Problem solved :) 
Reply all
Reply to author
Forward
0 new messages