ClearCanvas.ImageServer.Core.Edit.UpdateStudyCommand.SetStudyEncoding C# (CSharp) Method

SetStudyEncoding() private method

private SetStudyEncoding ( ClearCanvas.ImageServer.Model.Study study ) : void
study ClearCanvas.ImageServer.Model.Study
return void
        private void  SetStudyEncoding(Study study)
        {
            // set the SpecificCharacterSet of the patient and study record. This will update the database
            // and force Patient/Study/Series level query response to be encoded in UTF8. Image level responses
            // will be encoded using the character set in the image (see QueryScpExtension) 
            //
            if (atLeastOneFileUpdatedToUTF8)
            {
                // Only update the db if necessary                
                if (!IsUTF8(study.SpecificCharacterSet))
                {
					Platform.Log(LogLevel.Info, "Updating encoding for study information in the database to UTF8 [ UID={0} ]",
					             study.StudyInstanceUid);
                    study.SpecificCharacterSet = UTF8; // db update happens later
                }
            }
        }