🎉 🎉. RAPIDMINER 9.8 IS OUT!!! 🎉 🎉

RapidMiner 9.8 continues to innovate in data science collaboration, connectivity and governance


How To Write Not Read Character Into Database (square character)

grayhyukgrayhyuk Member Posts: 2 Learner I
edited January 11 in Help
Hello im literally new using Rapidminer
i dont know how to write square character like above to my mysql database
it always says database error occured incorrection string value
Im attach dataset and rmp process
Please your kindness
Thx for your help
Below example set when i just show in rapidminer


Best Answer

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 537   Unicorn
    Solution Accepted

    your input seems to have an invalid encoding, with unreadable characters. Databases are usually quite strict on only accepting correctly encoded input.
    Look again at your import process. Where are the data coming from? Is it possible that you're importing them with a wrong encoding setting? Are you using Unicode, UTF-8, or a locale-specific encoding?

    If you can't fix the input and need the characters as they are, you could use "Encode URL" (when writing) and "Decode URL" (when reading from the database) to create a representation of your text that the database accepts. This is how it would look like inside the database:


    Best regards,


  • grayhyukgrayhyuk Member Posts: 2 Learner I
    edited January 11
    thank you for your guidance so i just replace the character and get it through database

    &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;process version="8.1.003"&gt;<br>  &lt;context&gt;<br>    &lt;input/&gt;<br>    &lt;output/&gt;<br>    &lt;macros/&gt;<br>  &lt;/context&gt;<br>  &lt;operator activated="true" class="process" compatibility="8.1.003" expanded="true" name="Process"&gt;<br>    &lt;parameter key="encoding" value="US-ASCII"/&gt;<br>    &lt;process expanded="true"&gt;<br>      &lt;operator activated="true" class="read_excel" compatibility="8.1.003" expanded="true" height="68" name="Read Excel" width="90" x="112" y="34"&gt;<br>        &lt;parameter key="excel_file" value="C:\test input program name.xlsx"/&gt;<br>        &lt;parameter key="encoding" value="US-ASCII"/&gt;<br>        &lt;list key="annotations"/&gt;<br>        &lt;list key="data_set_meta_data_information"/&gt;<br>      &lt;/operator&gt;<br>      &lt;operator activated="true" class="replace" compatibility="8.1.003" expanded="true" height="82" name="Replace" width="90" x="313" y="34"&gt;<br>        &lt;parameter key="attribute_filter_type" value="single"/&gt;<br>        &lt;parameter key="attribute" value="offering_program_name"/&gt;<br>        &lt;parameter key="replace_what" value="[^\w\s]"/&gt;<br>        &lt;parameter key="replace_by" value="?"/&gt;<br>      &lt;/operator&gt;<br>      &lt;operator activated="true" class="jdbc_connectors:write_database" compatibility="8.1.003" expanded="true" height="68" name="Write Database" width="90" x="581" y="34"&gt;<br>        &lt;parameter key="connection" value="cms_dev_localhost"/&gt;<br>        &lt;parameter key="table_name" value="tes_tabel"/&gt;<br>        &lt;parameter key="overwrite_mode" value="overwrite"/&gt;<br>      &lt;/operator&gt;<br>      &lt;connect from_op="Read Excel" from_port="output" to_op="Replace" to_port="example set input"/&gt;<br>      &lt;connect from_op="Replace" from_port="example set output" to_op="Write Database" to_port="input"/&gt;<br>      &lt;connect from_op="Write Database" from_port="through" to_port="result 1"/&gt;<br>      &lt;portSpacing port="source_input 1" spacing="0"/&gt;<br>      &lt;portSpacing port="sink_result 1" spacing="0"/&gt;<br>      &lt;portSpacing port="sink_result 2" spacing="0"/&gt;<br>    &lt;/process&gt;<br>  &lt;/operator&gt;<br>&lt;/process&gt;<br><br>

Sign In or Register to comment.