# Find our objectEncoding of SOL-File (SharedObject)

**URL:** <https://forum.kirupa.com/t/find-our-objectencoding-of-sol-file-sharedobject/313241>\
**Category:** flash\
**Created:** [August 24, 2010, 8:31pm UTC](https://forum.kirupa.com/t/find-our-objectencoding-of-sol-file-sharedobject/313241 "2010-08-24T20:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![92Garfield](https://avatars.discourse-cdn.com/v4/letter/9/e56c9b/32.png) [@92Garfield](https://forum.kirupa.com/u/92Garfield)\
**Post date:** [August 24, 2010, 8:31pm UTC](https://forum.kirupa.com/t/find-our-objectencoding-of-sol-file-sharedobject/313241/1 "2010-08-24T20:31:16Z")

</div>

I tried 2 things:

```php
var so:SharedObject = SharedObject.getLocal("mySO");

//test1...
trace(so.objectEncoding); 
//always == so.defaultObjectEncoding, meaning 3 for AS3 no matter what object encoding was used on the SharedObject

//test2...
trace(so.size);
//Always traces the size it would have with choosen objectEncoding not actual size of file (see problem on test1)

```
