Questions tagged as 'string'

1
answer

How to transform an array of char into UTF-8?

For example, I have a char cadeia[300]; . I put characters in it, now I want to turn it into UTF-8.     
asked by 30.08.2015 / 00:59
1
answer

Encoding, conversion bytes - strings

I have a problem, I've been searching but all the solutions I find do not work. The problem is that I am accessing a page (.txt) and I can not convert it from bytes to string , in order to work the data (ex: page.split("\n") ) import...
asked by 02.07.2015 / 12:41
1
answer

Get several pieces of a String equal to Python

I want to make a first-dimensional array that contains the fields of a string equal to each block of the Python language, eg: primeiro bloco é esse isso ainda faz parte do primeiro bloco agora aqui é o segundo esse é o segundo bloco...
asked by 01.07.2015 / 03:43
1
answer

Checkbox values in array session as string

I want to put a array in the values of a checkbox but as string and so that they are separated by% use in a mysql query array('string1','string2') . These values come from a checkbox for a session: $variavel= $_SESSION['checkbox...
asked by 23.06.2015 / 19:38
1
answer

Find occurrences of a word

I have a text and I would like to find certain words, but in the way I am doing it it is with substr_count() I can only find the word as I wrote it. Example $text = "Eu sou um Menino e gosto de brincar com outros MENINOS"; $count= su...
asked by 28.06.2015 / 17:46
1
answer

How to do Split in some specific excepting lines?

I want to make a dynamic list that uses Regex.Split separating each item by the new line character, except when in the (...) fields in my lines of code, as follows: var x = 'the quick fox jumps over the lazy dog' var n = 'myChar (st...
asked by 29.07.2015 / 00:15
1
answer

Regular expression in PHP

Good night, I need to receive a string via POST, and break it into keywords, but it is possible for the user to separate words in three ways: comma (','), empty space or comma followed by empty space (','). I'm thinking of using the split ()...
asked by 04.07.2015 / 02:41
1
answer

Get two values from a string

I'm creating a programming language and for you to define variables in it you use this code: def NomeDaVariavel = ValorDela; And I wanted to know how I get only the Nome da variável field, separated from ValorDela . Any idea...
asked by 10.05.2015 / 22:19
1
answer

Type conversion going wrong

I'm having a data conversion problem when it passes For Each , it says that "vl_maodeobra" can not be converted from String to Integer type. The problem is that no matter the conversion I try to make the same error, just chan...
asked by 06.04.2015 / 15:29
1
answer

Triggers in PHP

I would like to know how I can create an activator - or trigger - in PHP but I do not know where to start. I wanted to make the user type, for example, "born stack". PHP would recognize the first term "NATO" and would result in "Sierra-Tango-...
asked by 14.04.2015 / 02:54