Questions tagged as 'string'

1
answer

Can a path whose name contains blank spaces be formatted in CMD?

The problem is that I need to execute a command in CMD, but since the paths of the files I search in Windows contain blank spaces, it requires me to use double quotes ("") to separate the paths. When I call it from C # I try to "escape" the p...
asked by 22.03.2018 / 02:01
1
answer

Convert XML into UTF-8 to ISO-8859-1

I am developing a web service that is invoked by an application external to mine. In this web service I receive an XML with all the necessary parameters to offer the service. The issue is that the XML comes with UTF-8 encoding and the database w...
asked by 04.09.2018 / 13:33
3
answers

How do you compare chains in Bash?

I'm using Bash in Linux and I found an example in which I compared the strings in this way but apparently it does not work. In this case, $a is what the user writes to the console. #!/bin/bash a=$1 if [ "${a}"=="static" ]; then (inst...
asked by 17.02.2017 / 06:13
2
answers

Format String

I have the following code: String convertedString = new DecimalFormat("##.###.###,##") .format(Double.parseDouble(Constantes.TRANSACCION_MONTO)); TXTTRANSMONTO.setText(convertedString); How do I make the app not crashee? I get an error....
asked by 13.08.2017 / 18:27
1
answer

Because I can not save more than 4096 characters in a Delphi 10.1 string

I'm trying to build a string with multiple SQL queries to run it in an SQLite database, but it only allows me to store 4096 characters in the string, I've tried AnsiStrings but it's the same thing. I am using Delphi Berlin 10.1 This is...
asked by 14.04.2017 / 18:12
1
answer

Generation of format toString

I'm doing a method that generates the format for the toString, in matrices, the problem that arises is that it sends me the error:    MissingFormatArgumentException this is the code I have: public static void main(String[] args) thr...
asked by 27.10.2016 / 00:01
1
answer

Error comparing two strings in an if in twig

I have an error comparing two strings in twig . Here is an example of my code: {% set var1 = "" %} {% set var2 = "" %} {% for unidad in array %} {% if unidad.var1 == var1 %} {% if unidad.var2 == var2 %}...
asked by 02.08.2016 / 09:18
2
answers

Sending String data between Activities, using them on onClick ()

I've been doing the sending of a string data to another activity is called a caculate and from that to history but it has not worked for me can someone tell me what the inconvenience will be. Thanks! the variables are declared String d; Strin...
asked by 21.09.2018 / 18:32
2
answers

Failed to work with pointers

char * trocear(int num){ char *salida; int i=0; while(num/10>0){ *(salida+i)=num%10+'0'; num=num/10; i++; } *(salida+i)=num+'0'; i++; *(salida+i)='char *n; n=trocear(123456); cout<<...
asked by 01.12.2018 / 12:33
0
answers

Convert string to nominal in Weka [closed]

I have a .arff with some data that has three string attributes and then a numeric one that is the class. When I try to make the model to later predict the class of other data, it does not let me indicate: Cannot handle string attrib...
asked by 16.02.2016 / 19:50