It looks like now it's just an issue with escaping. Try using another tool
to print the unicode literal, e.g.

curl ... --data-urlencode $(python -c 'print(u"q=drop measurement
\u00053\ufffdf\ufffd")')

On Thu, Feb 9, 2017 at 2:30 PM, Willem D'Haese <willem.dha...@gmail.com>
wrote:

> So I'm able to see different characters now, nut I'm still not able to
> delete the measurement.
>
> curl -u user:pass -G 'https://server:8086/query?pretty=true' --data-urlencode
> "db=mydb" --data-urlencode "q=show measurements"
> {
>     "results": [
>         {
>             "statement_id": 0,
>             "series": [
>                 {
>                     "name": "measurements",
>                     "columns": [
>                         "name"
>                     ],
>                     "values": [
>                         [
>                             "\u00053\ufffdf\ufffd"
>                         ],
>                         [
>                             "brocade-interface"
>                         ],
>                         [
>                             "cpu"
>                         ],
>                         [
>                             "disk"
>                         ],
>                         [
>                             "diskio"
>                         ],
>                         [
>                             "interface"
>                         ],
>                         [
>                             "io"
>                         ],
>                         [
>                             "kernel"
>                         ],
>                         [
>                             "mem"
>                         ],
>                         [
>                             "net"
>                         ],
>                         [
>                             "netstat"
>                         ],
>                         [
>                             "ping"
>                         ],
>                         [
>                             "processes"
>                         ],
>                         [
>                             "swap"
>                         ],
>                         [
>                             "system"
>                         ]
>                     ]
>                 }
>             ]
>         }
>     ]
> }
>
> With CLI:
>
> > DROP MEASUREMENT "\u00053\ufffdf\ufffd"
> ERR: error parsing query: found \u, expected identifier at line 1, char 20
>
>
> With curl:
>
> --data-urlencode "q=drop measurement \u00053\ufffdf\ufffd"
> {
>     "error": "error parsing query: found \\, expected identifier at line
> 1, char 18"
> }
>
> --data-urlencode "q=drop measurement \\u00053\\ufffdf\\ufffd"
> {
>     "error": "error parsing query: found \\, expected identifier at line
> 1, char 18"
> }
>
>  --data-urlencode "q=drop measurement \"u00053\\ufffdf\\ufffd\""
> {
>     "error": "error parsing query: found \\u, expected identifier at line
> 1, char 26"
> }
>
> --data-urlencode "q=drop measurement \"u00053\ufffdf\ufffd\""
> {
>     "error": "error parsing query: found \\u, expected identifier at line
> 1, char 26"
> }
>
> Tx for the help.
>
> Willem
>
> --
> Remember to include the version number!
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxData" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to influxdb+unsubscr...@googlegroups.com.
> To post to this group, send email to influxdb@googlegroups.com.
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/influxdb/dc481392-214b-4cf5-9f6b-dbbcc81c740d%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/dc481392-214b-4cf5-9f6b-dbbcc81c740d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to influxdb+unsubscr...@googlegroups.com.
To post to this group, send email to influxdb@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CALxJwdPfxurwZ-wD0DkLBKhTMGuEDHyttqtZsbKq5GqHCtxpGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to