Hi!

Because of some oddity of Oddcast I get an weird character in the metadata: FEFF - ZERO WIDTH NO-BREAK SPACE (http://www.fileformat.info/info/unicode/char/FEFF/charset_support.htm). Tried to replace it using string.replace but with no success.
I tried in many ways:
title_live = string.replace(pattern="\xfeff",fun (_) -> " UNKNOWN ",title_live) title_live = string.replace(pattern="\ufeff",fun (_) -> " UNKNOWN ",title_live) title_live = string.replace(pattern="\u{feff}",fun (_) -> " UNKNOWN ",title_live)

Sometimes I get an pcre.error and the script dies.

In the file attached you can see this character printed.

How should I call the replace function?

Thanks.

Alex
{
        "xml": {
                "live": " exista  Țintă șas îndoit ĂÎȘȚÂ ăîșțâ",
                "next": [
                        
                ]
        }
}
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to