Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Incorrect results with cyrillic symbols #50

Open
YaroslavKharchenko opened this issue Nov 20, 2018 · 0 comments
Open

Incorrect results with cyrillic symbols #50

YaroslavKharchenko opened this issue Nov 20, 2018 · 0 comments

Comments

@YaroslavKharchenko
Copy link

YaroslavKharchenko commented Nov 20, 2018

Description

Incorrect results with cyrillic symbols.

Steps to Reproduce

When I try to use cyrillic symbols inside ScriptEvalStr function I receive unxpected result. I think that plugin passes incorrect data.

Script in QlikView:

T1:
LOAD * Inline [
Descr_,        Descr2_,              ID
адбцкон,     adbcend,               1
аебцнач,     aebcstr,                 4
абврф234,    abvrf234,              2
дбжх967,     dbjh967,                3
];

T2:
LOAD
	ID, 
	R.ScriptEvalStr('as.character(grepl("а.бц(кон|нач)", q$Descr_));', Descr_ )  as Grp,
	R.ScriptEvalStr('as.character(grepl("a.bc(end|str)", q$Descr2_));', Descr2_ )  as Grp2
Resident T1;

I got table:
ID | Descr_ | Grp | Descr2_ | Grp2
1 | адбцкон | FALSE | adbcend | TRUE
2 | абврф234 | FALSE | abvrf234 | FALSE
3 | дбжх967 | FALSE | dbjh967 | FALSE
4 | аебцнач | FALSE | aebcstr | TRUE

In cells ID =1, Descr_=адбцкон and ID =4, Descr_=аебцнач it should be TRUE as for latin set.
Plugin works with latin symbols as expected.

I checked R script in R-console and it works right:

as.character(grepl("а.бц(кон|нач)", "адбцкон"))
[1] "TRUE"
as.character(grepl("а.бц(кон|нач)", "аепцкон"))
[1] "FALSE"

Expected behavior

Right work with cyrillic symbols.

Actual behavior

Wrong result.

Environment

Operating system where the SSE plugin is deployed
[v] Windows
[ ] Linux
Qlik View
[v] Desktop
[ ] Server

Versions

  • sse-r-plugin 1.2.1.0:
  • Qlik View November 2017 SR4:
  • Operating system Windows server 2016 Standard:
    R 3.5.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant