04-05-2024 12:37 PM
I need a bit of help...
Background:
I am trying to integrate with a CM's system, which is halfway around the world. I have have to VPN and RDP into their network to try things out. Also, the deployment PC does not have LV development environment installed so I am building an exe ever time I make a change.
I have several disadvantages working against me:
1) This is probably the second time I have put the "\httpClient\POSTBuffer.vi" on a block diagram (The first time was many years ago and didn't end well either.)
2) This is the first time I had to deal with Unicode. I think LV is making things worse.
Problem:
I want my LV code to output the same thing as the PowerShell script. (See image below)
Here is a chopped up image (yes, an picture) of my code... (to protect the innocent.)
You can see that the code is "working" in that it is returning "HTTP/1.1 200 OK..." along with some text in the body.
Things I have done or tried:
I have put the "UseUnicode=True" token into my LabVIEW ini file as well as the deployment app ini file (Is there a LV ini file for run-time?)
I have turned on "Forced Unicode Text" in the body string indicator.
I can copy the PS terminal text from the deployment PC into my LV dev environment string indicator successfully. So I know the string indicator is capable of displaying the correct characters.
Probably more things that I have tried the I do not recall since I am upto rev 7 of my code already.
Things I have not tried:
Calling a Power Shell script... I would rather use a native LV solution. Plus, it is requires more trial and error exe's being built. 🤢
Any ideas on what I am missing? or more specifically, how I can get it to work?
04-05-2024 02:35 PM
This is like font properties in that it can be different for different characters. When writing this property, it only affects the selected characters .
The following, once executed, will set a string control to always interpret everything as Unicode:
04-05-2024 03:13 PM - edited 04-05-2024 03:15 PM
Thanks for the insights.
I will try them out.
However, can you back save those attachments to 2020 please?
04-05-2024 03:18 PM
Here.