How to send character utf8 to sever by library net.gotev:uploadservice:2.1 in nadroid

143
May 02, 2018, at 09:30 AM

I want pass image and multi string to server.. for send image to server ,I use library "net.gotev:uploadservice:2.1"

but,because my character is utf8,when save in db ,displayed ???? What should I do?

my code in android:

new MultipartUploadRequest(this, uploadId, Constants.UPLOAD_URL)
        .addFileToUpload(path, "image") //Adding file
        .addParameter("name", strFileName)
        .addParameter("iduser", iduser+"") //Adding text parameter to the request
        .addParameter("madah",madah.getText().toString() )
        .addParameter("phone",phone.getText().toString())
        .addParameter("sokhanran",sokhanran.getText().toString())
        .addParameter("startdate", startdate.getText().toString())
        .addParameter("enddate",enddate.getText().toString())
        .addParameter("descript", descriptin.getText().toString())
        .addParameter("linkax", linkax)
        .addParameter("address",address.getText().toString())
        .setNotificationConfig(new UploadNotificationConfig())
        .setMaxRetries(2)
        .startUpload(); 
Rent Charter Buses Company
READ ALSO
Using a PHP loop to fetch MySQL data and repeat until get certain amount

Using a PHP loop to fetch MySQL data and repeat until get certain amount

I have a database table that stores image detailsFrom this I want to get a exactly 6 images (as strings only) and display the images as background images on figure tags

171
Sort values ASC and then get corresponding value by index of sorted table

Sort values ASC and then get corresponding value by index of sorted table

I am trying to do exist query but by using indexing

170
compare two dates in codeigniter model

compare two dates in codeigniter model

the from_date should be greater than or equal to start_date of pr_shift_roster table and to_date should be less than or equal to the end_date of pr_shift_roster tableI am using the below query in the model but unable to get proper result

169