Find

Article
· Dec 7, 2025 2m read

マルチプラットフォーム環境でCSPファイルをVSCodeで編集する場合の注意点

CSPでWebアプリケーションを開発する方法は今では推奨されていませんが、既存資産が膨大にあって、他の手法への書き換えには相当の時間がかかりそうな方々はたくさんおられることでしょう。

そういう方々は、しばらくはそれらCSPファイルのメンテナンスの必要性があるかと思います。

IRISではVSCodeが主たるIDEとなっていますが、開発環境がWindowsのみであれば、CSPファイルをSJISでメンテナンスしておけば、問題は起こりません。

ところが、それらのファイルをUNIX環境(LinuxやMac)に持っていって、VSCodeで編集作業を開始すると、文字化けの嵐となってしまいます。

これは以前にポストしましたが、UNIX環境のIRISは何も設定しないとロケールがenuw(英語)となっているためです。

さらにこれを日本語専用ロケールに変えても、unix環境ではロケールがjpuwの場合、ファイルの読み書きのエンコーディングが、utf8となっているので、cspファイルのエンコーディングがSJISのままでは都合が悪いです。

従ってCSPファイルのエンコーディングをUTF8に変更する必要があります。

しかし、プラットフォームの切り替えのたびにエンコーディングを変更するのも面倒です。

そこで推奨の方法は、ファイルのエンコーディングをUTF8のBOM付きに変更することです。

そうすることでプラットフォームがUNIX系、Windows系を気にする必要がなくなります。

VSCodeでファイルのエンコーデングを変更する方法は、ステータスバーに表示されているエンコーディングの所をクリックして、上に表示されるアクションの選択からエンコード付きで保存を選択し、そこでUTF-8 With BOMを選びます。

Discussion (0)1
Log in or sign up to continue
Digest
· Dec 7, 2025

InterSystems 开发者社区中文版:每周摘要(2025年12月1日-7日)

十二月 01 - 07, 2025Week at a GlanceInterSystems Developer Community
Announcement
· Dec 7, 2025

Key Questions of the Month: November 2025

Hey Community,

It's time for the new batch of #KeyQuestions from the previous month.

Great Questions - StoryCorps

Here are the Key Questions of November chosen by InterSystems Experts within all Communities:

📌 Non ascii characters got considered as a question mark inside regex engine. Is this a bug ? by @Norman W. Freeman (EN)

📌 Regarding best practices for integration between different datasets and namespaces by @Matheus Augusto (EN)

These questions will be highlighted with the #Key Question tag, and their authors will get the Key Question badge on Global Masters.

If you find the key question(s) from other communities interesting, just drop us a line in the comments, and we will translate the question(s) and the accepted answer(s).

Congrats, and thank you all for your interesting questions. Keep them coming!

See you next month😉

Discussion (0)1
Log in or sign up to continue
Article
· Dec 7, 2025 16m read

Scaffolding IRIS REST API Tests with IrisOASTestGen

Project Overview / Introduction

Developing and testing REST APIs in InterSystems IRIS often requires a significant amount of boilerplate code. While ObjectScript provides powerful tools for building APIs, writing consistent and repeatable tests can be time‑consuming. This is where IrisOASTestGen comes in.

2 Comments
Discussion (2)2
Log in or sign up to continue
Question
· Dec 6, 2025

Object Script - Phyton -> Excel Import Error - Date Format in Excel File

Hello, 

I am using Object Script with Phyton to import an Excel File. 

Please see the below code. Its works fine for all text and numeric Columns. But by importing a DATE formated column in Excel (birthdate) , Iam facing the below issue as result:

22@%SYS.Python

 

 

My question: How can i import date formated Excel Data in Object Script?

 

Thanks a lot in advance

 

Maikel

       Set tSC = $$$OK
        Set tData = ##class(%SYS.Python).Import("openpyxl")         Try 
        {
            /// Pfad zur Excel-Datei
            Set filePath = pInput.Filename
            $$$TRACE(filePath)
           
            Set pyWorkbook = tData."load_workbook"(pInput.Filename)
            Set pySheet = pyWorkbook.active
            Set maxRow = pySheet."max_row"
            ........

            Set MolDatum = pySheet.cell(i,y) m

7 Comments
Discussion (7)2
Log in or sign up to continue