Chinese characters not encoding correctly when deploying project
xacLincoln
Posts: 1 New member
Hi, thanks for the hard work.
After building a readyroll project in vs 2017 (Readyroll version 1.17.18158.17), the generated database sql scripts contain wrongly encoded Chinese characters . The original migration script file is ok. The deployment failed because of the wrong encodings.
I've been stuck by this in a few days. Is there any workaround?
After building a readyroll project in vs 2017 (Readyroll version 1.17.18158.17), the generated database sql scripts contain wrongly encoded Chinese characters . The original migration script file is ok. The deployment failed because of the wrong encodings.
I've been stuck by this in a few days. Is there any workaround?
Tagged:
Answers
If that's the case, you should be able to workaround this by doing the following:
- Right-click the Pre-Deployment folder and select Add... Script.
- From the template dialog, select Script (Not in Build) and prefix the filename with the next migration number (e.g. 0100_myscript.sql)
- Move the script to the desired migration sub-folder
- Open the script for editing and click Insert Metadata
- Add script content and build
If this doesn't resolve our issue, and you have ReadyRoll Pro and valid support, please contact us athttps://productsupport.red-gate.com/hc/en-us
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools